How to: Enable Debugging
You use Visual Studio to debug objects that run in the RoleTailored client.
Before you start debugging with Visual Studio, you must enable Microsoft Dynamics NAV 2009 for debugging and then attach Visual Studio to the Microsoft Dynamics NAV Server service. This procedure describes how to enable Microsoft Dynamics NAV 2009 for debugging.
To enable Microsoft Dynamics NAV 2009 for debugging
On the computer running Microsoft Dynamics NAV Server, open the CustomSettings.config file. This file is typically located at %programfiles%\Microsoft Dynamics NAV\60\service.
Change the value of the EnableDebugging key to true:
<add key="EnableDebugging" value="true" />
Save and close the CustomSettings.config file.
In Control Panel, click Administrative Tools, and then click Services to open the Services snap-in.
In the list of services, right-click Microsoft Dynamics NAV Server, and then click Restart.
Start the RoleTailored client.
When you start the RoleTailored client with debugging enabled, C# files are generated for every RoleTailored client object. Therefore, it takes longer to start the RoleTailored client. We recommend that you set the value of the EnableDebugging key to false after you finish debugging.