Setting debugger preferences

SelectWindow > Preferences from the workbench menu bar to open the Preferences page. In this page, you can expand Run/Debug to set a variety of debug preferences.

About this task

Compiled Debug

About this task

When you launch a debug session, the editor used by the debugger depends on the settings in the Debugger Editor section of this Preference page.
  • If Always use Debugger Editor while debugging is selected, then it uses the Debugger editor. This check box is not selected by default.
  • Otherwise, the debugger checks whether the source is currently open in any editor.
    • If it is currently open in an editor, the debugger uses that editor.
    • Otherwise it uses the default editor associated with the source file type. In most cases this will be the Remote Systems LPEX Editor.

Select Allow hover evaluation if you want the value of a variable to be displayed when you hover the cursor over the variable in the editor. This option is selected by default.

Select Double-click in Debugger Editor to add monitored expression if you want to enable this option. If it is enabled, when you double-click on an expression in the editor, the expression is added to the Monitors view. This option is disabled by default so that double-clicking simply highlights the expression. In addition to editor preferences, you can choose to delete program profiles. A program profile is saved by the debugger for each program that you debug. The program profile includes information such as breakpoint and monitor settings. To delete all currently saved program profiles, click Delete.

Select the Center view on execution line check box if you want to have the current line of execution centered in the Debugger editor for all debug sessions. In this section, you can also choose the color of the line of execution.

All other settings on this page do not apply.

IBM i Debug

About this task

Use this page to set preferences that will be applied when launching IBM i debugging sessions. The settings of Update product files on this page is reflected (or prefilled) in launch configurations and used for one-step debugging.

The Update production files setting causes applications under debug to be allowed to update database records in production libraries. If this check box is selected, the launch configuration What to Debug tab will have this setting selected by default.

If the Prompt when service entry point is encountered check box is selected, you will be notified via a dialog whenever a service entry point is triggered, and you can choose in the dialog whether you want a debug session to start or not. In the dialog, you can also select a check box which offers the option of always starting a debug session when a service entry point is encountered. If this check box is selected, the dialog will no longer notify you when a service entry point is encountered. Rather, a debug session will launch automatically - and the Prompt when service entry point is encountered preference option will no longer be selected. Note: The Prompt when service entry point is encountered setting applies to service entry points that are set from the Remote System Explorer and those that are set during a debugging session.

If the Prompt when service entry point is set check box is selected, you will be notified via a dialog whenever a service entry point is set from the Remote System Explorer.

The Include bound service programs when installing source breakpoints check box enables the source breakpoints you set for the source of your program's bound service programs to be installed and the bound service programs to be added to the debug session. If this check box is selected, you can also specify the libraries that you don't want to include for this option. Service programs in these libraries will not be added to the debug session and their source breakpoints will not be installed.


Feedback