In the last chapter, you saw how we can find the corresponding CS code of a C/AL code. Now we will move a step forward, and see how we can use Visual Studio Debugger to debug the C/AL code.
Let us see the steps that you need to follow in order to start debugging using Visual Studio Debugger.
Tip
Here I assume you have changed the settings mentioned in Chapter 3, The C/AL and VB Programming, and followed the steps under the Preprocessing into C# code section. Just make sure that the value of Enable Debugging is set to True.
Open Visual Studio as an administrator.
Make sure the service
Microsoft.Dynamics.NAV.Server.exe
is running.Now open the C Sharp (CS) file in visual studio, which is present at
C:ProgramDataMicrosoftMicrosoft Dynamics NAV90ServerMicrosoftDynamicsNavServer$DynamicsNAV90sourcePage
.