/sys$common/syshlp/DBG$HELP.HLB  —  DEBUG  SET  MODULE  Examples
    1.DBG> SET MODULE SUB1

      This command sets module SUB1 (loads the symbol records of
      module SUB1 into the RST).

    2.DBG> SET IMAGE SHARE3
      DBG> SET MODULE MATH
      DBG> SET BREAK %LINE 31

      In this example, the SET IMAGE command makes shareable image
      SHARE3 the current image. The SET MODULE command sets module
      MATH in image SHARE3. The SET BREAK command sets a breakpoint
      on line 31 of module MATH.

    3.DBG> SHOW MODULE/SHARE
      module name           symbols   language   size

      FOO                   yes       MACRO       432
      MAIN                  no        FORTRAN     280
           . . .
      SHARE$DEBUG           no        Image         0
      SHARE$LIBRTL          no        Image         0
      SHARE$MTHRTL          no        Image         0
      SHARE$SHARE1          no        Image         0
      SHARE$SHARE2          no        Image         0

      total modules: 17.              bytes allocated: 162280.
      DBG> SET MODULE SHARE$SHARE2
      DBG> SHOW SYMBOL * IN SHARE$SHARE2

      In this example, the SHOW MODULE/SHARE command identifies all
      modules in the current image and all shareable images (the
      names of the shareable images are prefixed with SHARE$).
      The SET MODULE SHARE$SHARE2 command sets the shareable image
      module SHARE$SHARE2. The SHOW SYMBOL command identifies any
      universal symbols defined in the shareable image SHARE2. For
      more information, see the SHOW MODULE/SHARE command.

    4.DBG> SET BREAK X/Y:

      In this example, the debugger automatically loads the module
      information when you specify the module name in the command.
      Debugger ensures that the module information for module X is
      loaded, and then locates the information for the routine named
      Y.
Close Help