How to Debug Enterprise Portal Code in Dynamics AX 2009
转载
- 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的更多相关文章
- Microsoft Dynamics AX 2009 White Paper: Close Non-Financial Transfers
http://www.microsoft.com/en-us/download/confirmation.aspx?id=12174
- [转]Dynamics AX and Generic collections of .Net
转自:http://blogs.msdn.com/b/emeadaxsupport/archive/2009/04/23/dynamics-ax-and-generic-collections-of- ...
- Dynamics AX Hostory
现在谈起Dynamics AX,在微软Dynamics系列产品当中,作为最受瞩目和最有前景的Dynamics套装产品线,很多人也许只知道它曾经由于资本市场的上市和并购,前后经历了三个“东家”.对于它长 ...
- 转:Microsoft Dynamics AX内部版本号概述
Overview of Microsoft Dynamics AX build numbers 转自:https://community.dynamics.com/ax/b/axsupport/arc ...
- 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 ...
- [eBook]Inside Microsoft Dynamics AX 2012 R3发布
最近一本关于Microsoft Dynamics AX 2012开发的书<Inside Microsoft Dynamics AX 2012 R3> 发布. Book Descriptio ...
- 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 ...
- Dynamics AX for Retail POS Development blogs
Dynamics AX for Retail POS Development Dynamics AX for Retail POS Development - Code Samples AX for ...
- Microsoft Dynamics AX 2012 X++ Editor Extensions
Microsoft Dynamics AX 2012 X++ Editor Extensions Initial version of this project is based on the MSD ...
随机推荐
- Lambda应用设计模式
前言 在使用 Lambda 表达式时,我们常会碰到一些典型的应用场景,而从常用场景中抽取出来的应用方式可以描述为应用模式.这些模式可能不全是新的模式,有的参考自 JavaScript 的设计模式,但至 ...
- 安装时出现 Runtiem error (at 62:321) SWbem Locator:服务不存在,或已被标记为删除 该怎么解决?
这是由wmi服务损坏引起的错误 修复WMI服务损坏的批处理程序 将下列代码复制到一个文本文件中,改名为fixwmi.bat,运行即可.需要一段时间,请大家耐心等候. ================= ...
- linux 进程监控
linux 进程监控 supervise Supervise是daemontools的一个工具,可以用来监控管理unix下的应用程序运行情况,在应用程序出现异常时,supervise可以重新启动指定程 ...
- [自娱自乐] 4、超声波测距模块DIY笔记(四)——终结篇·基于C#上位机软件开发
前言 上一节我们已经基本上把超声波硬件的发射和接收模块全部做好了,接下来我们着手开发一个软硬结合的基于C#的平面定位软件! 目录 一.整体思路 二.效果提前展示 2-1.软件部分展示 2-2.硬件部分 ...
- thrift之TTransport层的分帧传输类TFramedTransport
帧传输类就是按照一帧的固定大小来传输数据,所有的写操作首先都是在内存中完成的直到调用了flush操作,然后传输节点在flush操作之后将所有数据根据数据的有效载荷写入数据的长度的二进制块发送出去,允许 ...
- ueditor编辑器和at.js集成
源码: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8&qu ...
- spring配置entitymangerfactory
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerE ...
- 网站标题ico那些事
浏览器打开一个网页都会有一个标题,用来显示当前页面的相关内容,如网站名称或者一篇文章的大标题,而定义它应该显示啥的话完全由HTML中title标签的内容决定. 如我们的大博客园:
- loghelper.cs 代码
唉,网上到处找一圈,真是麻烦,自己结合别人写的,重新整理一个. 这个破玩意最大的作用就是写微信那种没法顺利断点调试的程序的时候,在需要的地方写日志,然后去查看.真是回到当年用DW4写php的年代了,可 ...
- GO語言基礎教程:Hello world!
首先簡單地說一下GO語言的環境安裝,從 http://golang.org/dl/ 針對自己的操作系統選擇合適的安裝包,然後下載安裝即可,下載的時候注意別選錯了的操作系統,例如go1.3.1.darw ...