Navision Application Server (NAS) is just a NAV client without GUI. This can present challenges in figuring out what has gone wrong while running your code using NAS. This recipe will show how to debug NAS.
You must already have the NAV Application Server service installed on the machine on which you are working.
Start Microsoft Dynamics NAV Development Environment.
Go to File | Database | Information.
The following screenshot will provide an idea about the expected window:
In the Server Instance drill-down list, select the service instance that is running NAS.
From the Tools menu in the NAV client, navigate to Debugger | Debug Session (Shift + Ctrl + F11).
You should see the currently running session list.
Select the NAS session.
From the ribbon select the Debug action.
From the ribbon select the Break action.