Finding errors while using NAS
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.
Getting ready
You must already have the NAV Application Server service installed on the machine on which you are working.
How to do it...
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.
How it works...
In NAV 2013, debugging NAS is pretty much the same as debugging an RTC client; the only difference is in selecting...