Plataan - Microsoft Dynamics - Learning & Competence Management Vincent Bellefroid Koen Stox Steven Renders Conny Schuddinck Steffie Alexiou
A blog about Microsoft Dynamics
Home Archives Subscribe Plataan website

« Microsoft Dynamics NAV 2009 official release date for Belgium | Main | Tip of the day: Sql Server Scripting Wizard »

28/09/2009

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:

  1. 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.
  2. Change the value of the EnableDebugging key to true:
    <add key="EnableDebugging" value="true" />
  3. Save and close the CustomSettings.config file.
  4. In Control Panel, click Administrative Tools, and then click Services to open the Services snap-in.
  5. In the list of services, right-click Microsoft Dynamics NAV Server, and then click Restart.
  6. When you start the RoleTailored client with debugging enabled, C# files for every RoleTailored client object are generated.

  7. 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 !!!

Comments

The comments to this entry are closed.

October 2011

Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Plataan Community

Visit us on LinkedIn Visit us on Facebook Visit us on Twitter