How to: Activate the Debugger at the Command Prompt
You can activate the debugger at the command prompt. 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 at the command prompt
At the command prompt, locate the RoleTailored client directory. The default location on a 32-bit computer is Program Files\Microsoft Dynamics NAV\70\RoleTailored Client. The default location on a 64-bit computer is Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client.
Enter the following command:
Microsoft.Dynamics.Nav.Client.exe "DynamicsNAV://< Server>[:<port]>/<ServerInstance>/<Company>/debug"
In the Session List window, do one of the following:
Choose Debug Next. The debugger is now active and is waiting to attach to a session.
Select a session, and then choose Debug. The debugger is now active and attached to the selected session.
In the Debugger window, you can enable and disable breakpoints, step through lines of code, and view variable and call stack information. For more information, see Walkthrough: Debugging the Microsoft Dynamics NAV Windows Client.