Debugging i Projects and adding breakpoints

You can prepare to debug the members by adding breakpoints to your source in your i Project locally before uploading your changes back to the IBM® i server.

About this task

Breakpoints are temporary markers you place in your program to tell the debugger to stop your program whenever execution reaches that point. For example, if a particular statement in your program is causing problems, you could add a breakpoint on the line containing the statement, then run your program. Execution stops at the breakpoint before the statement is executed. You can then check the contents of variables and the call stack, and step over (execute) the statement to see how the problem arises.

To add a breakpoint:

Procedure

  1. Select the line you want to add a breakpoint on by single-clicking on it. (You can also double-click in the marker area next to the line to add a breakpoint.)
  2. Right-click on the line and select Add Breakpoint from the pop-up menu.

Feedback