How to debug enterprise portal code in dynamics ax 2009

Source: Internet
Author: User
Tags microsoft dynamics mstsc

Reprinted

    • To set up debugging for pages
      1. log into the server that is running the AOS.
      2. Open the Microsoft Dynamics ax Server Configuration Utility (Start> Control Panel> Administrative Tools> Microsoft Dynamics ax 2009 server configuration ).
      3. Create a new configuration that allows debugging.
      A. Click Manage and then click Create configuration. In
      The create Configuration window, name the new configuration, such as "Dax
      Debugging ". Click OK.
      B. On the Application Object
      Server tab, select enable breakpoints to debug code X ++ code running on this
      Server. Click Apply.
      4. Click OK to close the Configuration window. If you receive a message about the AOS, indicate that it shoshould be restarted.
      5. log in to the server that is running IIS and enterprise portal. if the system is remote, you can do this using Terminal Services. from the Start Menu, click Run. type the following in the open box and click OK:
      Mstsc/console
      This opens a console session in Terminal Services.
      6. Enable desktop interaction for the World Wide Web Publish service.
      A. Open the Services window for the system (Start>
      Control Panel> Administrative Tools> services ).
      B. Right-click the World Wide Web Publishing
      Service, and then click Properties.
      C. Click the log on tab.
      D. Select allow service to interact with desktop.
      E. Click OK to close the Properties window.
      7. open the web. config file located in \ Inetpub \ wwwroot \ WSS \ virtualdirectories \, where is the port number of the site where enterprise portal is installed. modify the file by doing the following:
      A. Locate the compilation element, and then set
      Debug attribute to true. This has CES the chance of the web session having
      Timeout error when stopped at a breakpoint.
      B. Save
      The changes.
      8. Reset IIS by typing the iisreset command at the command-line window.
      9. Open the Microsoft Dynamics ax Configuration Utility (Start> Control Panel> Administrative Tools> Microsoft Dynamics ax 2009 configuration ).
      10. Set the Application Object Server instance drop-down menu to business connector (non-interactive use only ).
      11. Create a new configuration that allows debugging.
      A. Click Manage and then click Create configuration. In
      The create Configuration window, name the new configuration, such as "Dax
      Debugging ". Click OK.
      B. On the developer tab,
      Select Enable User breakpoints to debug code running in the business connector.
      Click Apply.
      12. Click OK to close the Configuration window.
      13. Open the Microsoft Dynamics ax client.
      14. On the Tools menu, click Options to display the options window.
      15. On the Development tab, select when breakpoint from the debug mode list box, and then click Apply. This enables debugging mode on the client.
      16. Close the options window.
      Debugging an element on a web page
      To debug an element on a web page
      1. log in to the server that is running Internet Information Services (IIS) and Enterprise Portal. if the system is remote, you can do this using Terminal Services. from the Start Menu, click Run. type the following in the open box and click OK:
      Mstsc/console
      This opens a console session in Terminal Services, and is necessary if you want to debug on a remote system.
      Important
      If you are debugging on a remote system, you must use Console mode when connecting. Otherwise, debugging will not work.
      2. Open the Microsoft Dynamics ax client.
      3. Be sure that you are logged on as a user who is also one of the following:
      · The user who started the session of Microsoft Dynamics ax
      · The user who will set breakpoints in X ++ code
      4. In the AOT, locate the element that you want to debug. Typically, you will debug data sets, classes, web forms, reports, web reports, or weblets.
      5. set breakpoints in the X ++ code by using the code editor. For more information, see X ++ code editor.
      6. Open the debugger by clicking tools, then clicking development tools, and finally clicking debugger. The debugger must be open before you can run code that contains breakpoints.
      7. Open the web page that has des the element that you want to debug. As the page is rendered, the debugger shocould stop at the breakpoints that you set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.