Difference between revisions of "Interactive debugger"

From MidrangeWiki
Jump to: navigation, search
(Created page with info about setting watch breakpoints)
 
(Fixed link to the LPEX article)
Line 11: Line 11:
  
 
==== Adding breakpoints ====
 
==== Adding breakpoints ====
You can add a breakpoint in at least two ways.  The debugger need not be active to add a breakpoint from the [[LPEX]] editor.
+
You can add a breakpoint in at least two ways.  The debugger need not be active to add a breakpoint from the [[WDSC LPEX | LPEX]] editor.
  
 
# Adding breakpoints from the LPEX editor
 
# Adding breakpoints from the LPEX editor
Line 29: Line 29:
 
You can add a breakpoint in at least two ways.  The debugger must be active to add watch breakpoints.
 
You can add a breakpoint in at least two ways.  The debugger must be active to add watch breakpoints.
  
# Adding breakpoints from the [[LPEX]] editor
+
# Adding breakpoints from the [[WDSC LPEX | LPEX]] editor
 
## Right-click in the source, then 'Add watch breakpoint'.
 
## Right-click in the source, then 'Add watch breakpoint'.
 
## Type the variable name if it's not there already
 
## Type the variable name if it's not there already

Revision as of 16:26, 8 November 2007

WDSC contains an Interactive debugger which can be used to debug programs written in multiple languages. The debugger can connect to programs running on the local PC as well as those on remote servers, including those i5/OS jobs.

Interactive Debugger Overview

Overview goes here

Using the debugger

This is the section in which to add usage notes

Breakpoints

Breakpoints cause the execution of the program to stop at a given point so that the programmer can inspect the program state. In large programs, this is somewhat easier than stepping through each line of the program. Breakpoints can be added both while the debugger is active and while it is not. More complex breakpoints such as watch breakpoints require the debugger to be active.

Adding breakpoints

You can add a breakpoint in at least two ways. The debugger need not be active to add a breakpoint from the LPEX editor.

  1. Adding breakpoints from the LPEX editor
    1. Right-click in the source, then 'Add breakpoint'.


  1. Adding breakpoints using the Breakpoints view
    1. The debugger must be active
    2. Right-click in the Breakpoints view
    3. Select 'Add Breakpoint -> Line'
    4. Fill in the information for the breakpoint you wish to set.


Watch breakpoints

You can add a breakpoint in at least two ways. The debugger must be active to add watch breakpoints.

  1. Adding breakpoints from the LPEX editor
    1. Right-click in the source, then 'Add watch breakpoint'.
    2. Type the variable name if it's not there already
    3. Put the %size() of the variable in the 'Number of bytes to watch' dropdown.
    4. Click Finish.


  1. Adding breakpoints using the Breakpoints view
    1. Right-click in the Breakpoints view
    2. Select 'Add Breakpoint -> Watch'
    3. Type the variable name if it's not there already
    4. Put the %size() of the variable in the 'Number of bytes to watch' dropdown.
    5. Click Finish.


Categories