Export (0) Print
Expand All

Debug Web Part Pages

Debug X++ code in forms, reports, and other elements that display on Web part pages by using the debugger in Microsoft Dynamics AX.

  1. Connect to the Enterprise Portal server that is running the Web site. For information about setting up a server, see Install an Enterprise Portal server.

  2. Open the Configuration Utility (Start > Control Panel > Administrative Tools > Microsoft Dynamics AX Configuration Utility).

  3. Modify the configuration by doing the following:

    1. Select Local client from the Configuration target list box.

    2. Click Manage > Create configuration, type "Axapta" in the Configuration name box, and then click OK.

    3. On the Developer tab, select Enable user breakpoints to debug code running in the Business Connector, select sys from the Application object layer to open list box, and then click Apply.

    4. Select Business Connector (non-interactive use only) from the Configuration target list box, and then repeat steps b - c.

    5. Click OK.

  4. Open the Microsoft Dynamics AX client.

  5. On the Tools menu, click .

  6. On the tab, select from the list box, and then click .

  7. Close the dialog, and then close the client.

  8. Open the web.config file located at <drive:N>:\Inetpub\wwwroot, and modify the file by doing the following:

    1. Locate the compilation element, and then set the debug attribute to true.

    2. Locate the trust element, set the level attribute to WSS_Medium, and then set the processRequestInApplicationTrust attribute to false.

    3. Save the changes.

  9. Reset Internet Information Services (IIS) by typing the iisreset command at the command-line window.

  1. Connect to the Enterprise Portal server that is running the Web site.

    NoteNote

    If you connect to the server using Remote Desktop Connection, you must click Start > Run and type mstsc.exe /console in the Open box to connect remotely and debug an element.


  2. Open the Microsoft Dynamics AX client.

  3. In the Application Object Tree (AOT), locate the element you want to debug. Web forms and reports are located under the Web node.

  4. Set breakpoints in the X++ code by using the code Editor. For more information, see X++ Code Editor.

  5. Open the debugger by clicking Tools > > .

  6. Navigate to the Web site.

    To locate the URL, open the Navigation Pane, and then click > > > . The URL is displayed in the field.

  7. Open the Web part page that includes the element that you want to debug, and then click in the element to display the X++ code in the debugger.

    For more information about using the debugger, see Microsoft Dynamics AX Debugger.

Community Additions

ADD
Show:
© 2014 Microsoft