转载

    • 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. [异常] VC6.0 error LNK2001: unresolved external symbol _main解决办法

    来自:http://www.douban.com/note/65638800/ 学习VC++时经常会遇到链接错误LNK2001,该错误非常讨厌,因为对于编程者来说,最好改的错误莫过于编译错误,而一般说 ...

  2. ueditor编辑器和at.js集成

    源码: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8&qu ...

  3. Qt 二级菜单栏 中文无法输入问题

    问题描述:Qt5.3.1版本在建立主界面的二级菜单的时候,中文无法输入,而英文确是可以输入的.(首先我在网页上面搜索了一下,他们说是Qt的设计问题.) 解决方法: (1)粘贴复制,把中文写在其他的地方 ...

  4. Redis教程(六):Sorted-Sets数据类型

    转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/133.html 一.概述: Sorted-Sets和Sets类型极为相似, ...

  5. Redis教程(八):事务详解

    转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/135.html?1455806987 一.概述: 和众多其它数据库一样,R ...

  6. [Python爬虫] 在Windows下安装PIP+Phantomjs+Selenium

    最近准备深入学习Python相关的爬虫知识了,如果说在使用Python爬取相对正规的网页使用"urllib2 + BeautifulSoup + 正则表达式"就能搞定的话:那么动态 ...

  7. atitit.插件体系设计总结o73.doc

    1. 两大类型:微内核(级联树形结构)与巨内核(管理容器,并联结构). 1 2. 通用插件接口 1 3. 插件的绑定and 初始化 2 4. 微内核插件平台设计 2 5. 参考 2 1. 两大类型:微 ...

  8. C语言内存分布之数据段

    不管我们以后是自己写代码还是读别人的代码,都应该想想这个变量默认存储的位置.在我们以后的嵌入式开发中,技巧性的代码越来越多的时候,我们可能把某一些代码放在一段.我们可以通过修改变量或者代码默认放置的段 ...

  9. 我所理解的JavaScript闭包

    目录 一.闭包(Closure) 1.1.什么是闭包? 1.2.为什么要用闭包(作用)? 1.2.1.保护函数内的变量安全. 1.2.2.通过访问外部变量,一个闭包可以暂时保存这些变量的上下文环境,当 ...

  10. [轉]redis;mongodb;memcache三者的性能比較

    先说我自己用的情况: 最先用的memcache ,用于键值对关系的服务器端缓存,用于存储一些常用的不是很大,但需要快速反应的数据 然后,在另一个地方,要用到redis,然后就去研究了下redis. 一 ...