General HydroStatics
Ship Stability Software |
Command of the Week
(New or interesting aspects of GHS that you may not know about) |
WAIT BREAK debugger
(Requires GHS version 16.00A or later) |
Did you know GHS contains its own built-in run file debugger?
It provides the major capabilities needed to debug what's going on
inside complicated macro systems, such as:
|
Here's a pro tip: put WAIT BREAK inside its own BREAK macro, then write calls to .BREAK instead of WAIT BREAK throughout the run file you're debugging. That way you can turn off all your breaks in one shot just by commenting out WAIT BREAK inside the MACRO BREAK definition. Even better, if there's any info that you want to see on the screen at every break, just insert necessary MESSAGE commands (or whatever) before WAIT BREAK in the BREAK macro. So how do you resume your macros after the break? As hinted in the example footer, just press the Esc key to "escape" back to the exact place where your macro system got interrupted. |
Questions, comments, or requests?
Contact Creative Systems, Inc. USA phone: 360-385-6212 Fax: 360-385-6213 Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday Mailing address: PO Box 1910 Port Townsend, WA 98368 USA Click here for an index to this and previous COWs |