Executing Commands At Each Source Line [ Symbolic Debugger/iX User's Guide ] MPE/iX 5.0 Documentation
Symbolic Debugger/iX User's Guide
Executing Commands At Each Source Line
When you suspect that bugs might be occurring at several places in a
program, or you have a bug that is especially difficult to track down,
you can direct the debugger to execute one or more commands before every
source statement is executed. For example, you might want to track the
value of one or more variables through a series of detailed calculations.
The commands that you execute are called assertions. Assertion command
lists must be enclosed in braces.
The following example shows how to display the variables payw8 and paynet
before each source statement is executed:
>a {p payw8; p paynet}
The if command is very useful in assertion and breakpoint command lists.
For example, if paynet should always be less than 23000, but its value
becomes greater, the assertion:
>a {if (paynet >=23000) {x}}
will stop the program when paynet exceeds the legal value.
MPE/iX 5.0 Documentation