- Open Dynamics NAV2018 Administration open Server-Instance of NAV2018 and check Value for Enable Debugging in General fast-tab. It must be true.
- In the Service folder on Service Tier (C:\Program Files\Microsoft Dynamics NAV\110\Service) you will find Microsoft.Dynamics.Nav.Server.exe.
- Open this file using Notepad OR VS and select the line <NetFx40_LegacySecurityPolici enabled=”true”/>, Delete this line or change value as false and save it and then restart NAV Server Instance.
- Put toggle breakpoint in AL Code for debug, then press F5 for publish with debugging.
- In my case i put debug point on ‘event of insert & modify address’.
- After pressing F5, Web-client is automatically opened.
- Whenever i insert or modify address then process of debugging will be start in VS-Code.
- Now, you can debug your code step by step; by pressing short cut key F11.