Dynamics NAV has a new debugger, and good news are that you can debug RTC sessions and also sessions from any other client (like a WebService).
The previous version of Dynamics NAV, version 2009, already had an option to debug C# sessions… but an incomprehensible C# code was shown. Many of the Dynamics NAV developers (as myself) where unable to underestand it. So if we needed to debug, we tried to reproduce the process on the classic client to be able to debug C/AL code.
The classic client has been droped from Dynamics NAV. Good new then that the new debugger shows C/AL code! In addition, it includes cool features, like conditional breakpoints, breaking on record changes, or skip code from codeunit 1.
Start the debugger
From there click Tools , Debugger, Debug Session. A page will open, showing all active sessions. You will be able to select the session you want to debug from any user and any client.
1. Place a breakpoint on an object statement and wait until the sessions reaches that statement.
2. Click the Break option to debug from the point where the session is right now.