Activate Debugger from Development Environment in Dynamics NAV

You can activate the debugger from the development environment. After you activate the debugger and attach it to a session, program flow in that session continues normally until a breakpoint is hit. For more information, see Breakpoints.

To activate the debugger from the development environment

  1. In the development environment, on the Tools menu, point to Debugger, and then choose Debug Session.


    You may encounter the following error when activating the debugger.

    Microsoft.Dynamics.Nav.Client has stopped working.

    To fix this error, see Troubleshooting: "Microsoft.Dynamics.Nav.Client has stopped working" error when starting debugger.

  2. On the Session List page, do one of the following:

    • Choose Debug Next. The debugger is now active and is waiting to attach to the next session.

    • Select a session, and then choose Debug. The debugger is now active and attached to the selected session.

    In the View – Debugger window, you can enable and disable breakpoints, step through lines of code, and view variable and call stack information. Additionally, you can manage breakpoints on lines of code in the C/AL Editor in the development environment. For more information, see Walkthrough: Debugging the Microsoft Dynamics NAV Windows Client.

See Also

Activating the Debugger