转载

    • 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 should 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 the
      debug attribute to true. This reduces the chance of the Web session having a
      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 includes the element that you want to debug. As the page is rendered, the Debugger should stop at the breakpoints that you set.

How to Debug Enterprise Portal Code in Dynamics AX 2009的更多相关文章

  1. Microsoft Dynamics AX 2009 White Paper: Close Non-Financial Transfers

    http://www.microsoft.com/en-us/download/confirmation.aspx?id=12174

  2. [转]Dynamics AX and Generic collections of .Net

    转自:http://blogs.msdn.com/b/emeadaxsupport/archive/2009/04/23/dynamics-ax-and-generic-collections-of- ...

  3. Dynamics AX Hostory

    现在谈起Dynamics AX,在微软Dynamics系列产品当中,作为最受瞩目和最有前景的Dynamics套装产品线,很多人也许只知道它曾经由于资本市场的上市和并购,前后经历了三个“东家”.对于它长 ...

  4. 转:Microsoft Dynamics AX内部版本号概述

    Overview of Microsoft Dynamics AX build numbers 转自:https://community.dynamics.com/ax/b/axsupport/arc ...

  5. Visual Studio Debug only user code with Just My Code

    Debug only user code with Just My Code By default, the debugger skips over non-user code (if you wan ...

  6. [eBook]Inside Microsoft Dynamics AX 2012 R3发布

    最近一本关于Microsoft Dynamics AX 2012开发的书<Inside Microsoft Dynamics AX 2012 R3> 发布. Book Descriptio ...

  7. Microsoft Dynamics AX 2012: How to get Company,Customer and Vendor address in AX 2012

    Scenario:  “How to get Addresses of “Customer, Vendor and Company” 1)      First we need to identify ...

  8. Dynamics AX for Retail POS Development blogs

    Dynamics AX for Retail POS Development Dynamics AX for Retail POS Development - Code Samples AX for ...

  9. Microsoft Dynamics AX 2012 X++ Editor Extensions

    Microsoft Dynamics AX 2012 X++ Editor Extensions Initial version of this project is based on the MSD ...

随机推荐

  1. 微软BI 之SSIS 系列 - MVP 们也不解的 Scrip Task 脚本任务中的一个 Bug

    开篇介绍 前些天自己在整理 SSIS 2012 资料的时候发现了一个功能设计上的疑似Bug,在 Script Task 中是可以给只读列表中的变量赋值.我记得以前在 2008 的版本中为了弄明白这个配 ...

  2. SRS文档 软件需求说明书

    [摘要] 随着信息时代科技的飞速发展,经济全球化已广为人知,英语作为全球最主要的语言之一,受到越来越多的人的喜爱,不仅为了增长知识,也为了能适应社会发展的需求.但是,学英语最重要的事首先是积累词汇,没 ...

  3. [ACM_几何] Metal Cutting(POJ1514)半平面割与全排暴力切割方案

    Description In order to build a ship to travel to Eindhoven, The Netherlands, various sheet metal pa ...

  4. Java-JDK配环境,eclipse工具认识

    一.JDK配环境: 1.JDK思维导图 2.测试代码: 需要注意点位类名大小写的区分,符号为英式输入法下的, ; . class Hello{ public static void main(Stri ...

  5. .NET读取Office文件内容(word、excel、ppt)

    引用命名空间 using Microsoft.Office.Core; using Word = Microsoft.Office.Interop.Word; using Excel = Micros ...

  6. java封装性

    原先是class Person{ public string name; public  int age } public void main{ Person person=new person(); ...

  7. IOS开发之控件篇UITabBarControllor第一章 - 介绍

    UITabBarControllor的基本样子 官方有个图介绍这个TabBar的结构,我们先来看看这个结构图 --------------------------------------------- ...

  8. android: 后台执行的定时任务

    Android 中的定时任务一般有两种实现方式,一种是使用 Java API 里提供的 Timer 类, 一种是使用 Android 的 Alarm 机制.这两种方式在多数情况下都能实现类似的效果,但 ...

  9. Java反序列化漏洞执行命令回显实现及Exploit下载

    原文地址:http://www.freebuf.com/tools/88908.html 本文原创作者:rebeyond 文中提及的部分技术.工具可能带有一定攻击性,仅供安全学习和教学用途,禁止非法使 ...

  10. LeetCode:Container With Most Water,Trapping Rain Water

    Container With Most Water 题目链接 Given n non-negative integers a1, a2, ..., an, where each represents ...