DBG$HELP.HLB  —  DEBUG  SET  BREAK  Examples
    1.DBG> SET BREAK SWAP\%LINE 12

      This command causes the debugger to break on line 12 of module
      SWAP.

    2.DBG> SET BREAK/AFTER:3 SUB2

      This command causes the debugger to break on the third and
      subsequent times that SUB2 (a routine) is executed.

    3.DBG> SET BREAK/NOSOURCE LOOP1 DO (EXAM D; STEP; EXAM Y; GO)

      This command causes the debugger to break at location LOOP1. At
      the breakpoint, the following commands are issued, in the order
      given: (1)  EXAMINE D, (2) STEP, (3)  EXAMINE Y, and (4)  GO.
      The /NOSOURCE qualifier suppresses the display of source code
      at the breakpoint.

    4.DBG> SET BREAK ROUT3 WHEN (X > 4) DO (EXAMINE Y)

      This command causes the debugger to break on routine ROUT3 when
      X is greater than 4. At the breakpoint, the EXAMINE Y command
      is issued. The syntax of the conditional expression in the WHEN
      clause is language-dependent.

    5.DBG> SET BREAK/TEMPORARY 1440
      DBG> SHOW BREAK
      breakpoint at 1440 [temporary]
      DBG>

      This command sets a temporary breakpoint at memory address
      1440. After that breakpoint is triggered, it disappears.

    6.DBG> SET BREAK/LINE

      This command causes the debugger to break on the beginning of
      every source line encountered during program execution.

    7.DBG> SET BREAK/LINE WHEN (X .NE. 0)
      DBG> SET BREAK/INSTRUCTION WHEN (X .NE. 0)

      These two commands cause the debugger to break when X is not
      equal to 0. The first command tests for the condition at the
      beginning of every source line encountered during execution.
      The second command tests for the condition at each instruction.
      The syntax of the conditional expression in the WHEN clause is
      language-dependent.

    8.DBG> SET BREAK/RETURN ROUT4

      This command causes the debugger to break whenever the return
      instruction of routine ROUT4 is about to be executed.

    9.DBG> SET BREAK/EXCEPTION DO (SET MODULE/CALLS; SHOW CALLS)

      This command causes the debugger to break whenever an exception
      is signaled. At the breakpoint, the SET MODULE/CALLS and SHOW
      CALLS commands are issued.

    10all> SET BREAK/ACTIVATING

      This command causes the debugger to break whenever a process of
      a multiprocess program is brought under debugger control.
Close Help