Debugging NAV 2009 on windows XP
As you might already know, it is possible to debug pages in Dynamics NAV 2009. There are already some blog postings out there that explain how to do this.
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.
- When you start the RoleTailored client with debugging enabled, C# files for every RoleTailored client object are generated.
- You can view these C# files in Visual Studio.
Navigate to "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source"
That's great, but only 1 problem: I do not have a directory called C:\ProgramData, because I'm not running windows Vista, I'm still running good old windows XP ???
Solution:
In the Application Event log, find the entry that has MicrosoftDynamicsNAVServer for its Source and has the following description:
Service: <service name>
Source files for debugging are available under <source file location>
Now open windows explorer and voila:
We finally found the files and we can use them in Visual Studio for debugging !!!
Recent Comments