Share via


Debugger Window

Use the Debugger window to debug Microsoft Dynamics NAV sessions. After you attach the debugger, program flow runs until it reaches a breakpoint or a break rule. When the program flow reaches the breakpoint or break rule, the debugger stops execution until there are instructions to continue.

In the Debugger window, you can:

  • View code.

  • View the values of variables in the Watches list.

  • View the call stack.

  • Perform actions to step through code, break into running code, or continue code that you have broken into.

  • Manage breakpoints and break rules.

  • Show variables.

  • Show the last error that occurred.

Debugger Code Viewer

The Debugger Code Viewer displays the code at the point at which the debugger broke execution. In the code viewer, a yellow arrow in the margin identifies the current executing statement in the current function.

A green arrow in the margin identifies the current statement in the calling function. You view the code from the calling function by double-clicking an item in the Debugger Callstack FactBox.

A red dot in the margin identifies a breakpoint.

Debugger Watch Value FactBox

The Debugger Watch Value FactBox displays variables for which you have specified to add a watch. If the variable is in scope, then the Debugger Watch Value FactBox also displays the value of the variable.

Debugger Callstack FactBox

The Debugger Callstack FactBox displays the function calls that led to the current line of code.

Tip

For more information on how to navigate in the user interface, see Work with Microsoft Dynamics NAV. For assistance in finding specific pages, see Search.

See Also

Other Resources

Debugging
Walkthrough: Debugging the RoleTailored Client
How to: Manage Breakpoints from the Debugger Breakpoint List
How to: Manage Breakpoints from the Debugger Code Viewer
How to: Break on the Next Statement
How to: Break on Errors
How to: Break on Record Changes
How to: Skip Codeunit 1
How to: Set Conditional Breakpoints
How to: View Variables
How to: Show the Last Error
How to: Add Variables to the Watches FactBox