The process of finding and correcting errors is called debugging. You debug objects that run in the Classic client with the Microsoft Dynamics NAV debugger. You debug objects that run in the RoleTailored client with Visual Studio.

In Microsoft Dynamics NAV 2009, code is executed in the common language runtime (CLR), which is the .NET Framework run-time environment. Microsoft Dynamics NAV 2009 has a Microsoft Dynamics NAV class library that contains .NET versions of C/AL functions. New objects in Microsoft Dynamics NAV 2009, such as pages and client report definition (RDLC) report layouts, were created with the Microsoft Dynamics NAV class library. These objects cannot run in the Classic client. This means that you cannot debug these objects with the Microsoft Dynamics NAV debugger. For objects that were available in previous versions of Microsoft Dynamics NAV and that are also available in the RoleTailored client, C# code was generated so that the objects run in the CLR. You can debug these objects in either the Microsoft Dynamics NAV debugger or in Visual Studio. You can debug objects that are available only in the Classic client, such as forms and dataports, in the Microsoft Dynamics NAV debugger but not in Visual Studio.

The following table shows the objects in Microsoft Dynamics NAV 2009 and which debugger to use.

Object Debugger

Table

Microsoft Dynamics NAV debugger or Visual Studio

Form

Microsoft Dynamics NAV debugger

Classic report layout

Microsoft Dynamics NAV debugger

RDLC report layout

Visual Studio

Dataport

Microsoft Dynamics NAV debugger

XMLport

Microsoft Dynamics NAV debugger or Visual Studio

NoteNote

XMLports have new features in Microsoft Dynamics NAV 2009 that are only available with Microsoft Dynamics NAV Server. If you want to debug these features, then you must use Visual Studio.

Codeunit

Microsoft Dynamics NAV debugger or Visual Studio

MenuSuite

Not applicable. There is no code to debug on MenuSuite objects.

Page

Visual Studio

For more information about debugging objects in the Microsoft Dynamics NAV debugger, see Debugging with Microsoft Dynamics NAV Debugger.

For more information about debugging objects in Visual Studio, see Debugging With Visual Studio.

See Also