Debugging using Visual Studio Debugger

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.

  1. Open Visual Studio as an administrator.
  2. Make sure the service Microsoft.Dynamics.NAV.Server.exe is running.
  3. Now open the C Sharp (CS) file in visual studio, which is present at C:ProgramDataMicrosoftMicrosoft ...

Get Mastering Microsoft Dynamics NAV 2016 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.