Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Enable Debugging

How to: Enable Debugging

Microsoft Dynamics Nav 2009

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

  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. Start the RoleTailored client.

    NoteNote

    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.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft