最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

[转]How to enable X++ debugging if you run Microsoft Dynamics AX 4.0 on an Enterprise Portal Web site and the .NET Business Connector is installed

AX 4.0 William 1542浏览 0评论

INTRODUCTION

This article describes how to enable X++ debugging if the following conditions are true

This article describes how to enable X++ debugging if the following conditions are true:

  • You run Microsoft Dynamics AX 4.0 on an Enterprise Portal Web site.
  • The .NET Business Connector is installed on the server on which Enterprise Portal in Microsoft Dynamics AX 4.0 is installed.

MORE INFORMATION

To enable X++ debugging in the current user session in Microsoft Dynamics AX 4.0, follow these steps:

To enable X++ debugging in the current user session in Microsoft Dynamics AX 4.0, follow these steps:

  1. On the server that is running Internet Information Services (IIS), open a console session (also known as session 0).To use Terminal Server to do this, click Start , click Run, type mstsc /console in the Open box, and then click OK.If you start the Terminal Server session from a Windows XP SP3 client, then click Start, click Run, type mstsc /admin in the Open box, and then click OK.
    Then, start Microsoft Dynamics AX 4.0 in the Terminal Server session.
  2. Set the .NET Business Connector configuration and the client configuration to enable breakpoints when you run the Business Connector. To do this, follow these steps:
    1. Click Start, click Run, type Control admintools, and then click OK.
    2. Double-click Microsoft Dynamics AX Configuration Utility.
    3. In the Configuration target list, click Business Connector (Non-interactive use only).
    4. On the Developer tab, click to select the Enable user breakpoints to debug code running in the business connector check box and the Enable global breakpoints to debug code running in the business connector check box.
    5. Click Apply. Then, click OK.

    Repeat step a through step e for the local client configuration in the Configuration target list.

  3. Enable debug mode. To do this, follow these steps:
    1. On the Tools menu, click Options.
    2. Click the Development tab.
    3. In the Debug mode box, click When Breakpoint.
    4. Click Apply, and then close the Options dialog box.
  4. Locate the code that you want to debug. Before the code that you want to debug, type the keyword breakpoint.
  5. Manually start the debugger. To do this, click Tools, point to Development tools, and then click Debugger.
  6. Enable desktop interaction for the World Wide Web Publishing Service. To do this, follow these steps:
    1. Click Start, point to All Programs, point to Administrative Tools, and then click Services.
    2. Right-click World Wide Web Publishing Service, and then click Properties.
    3. Click the Log On tab.
    4. Click to select the Allow service to interact with desktop check box.
    5. Click OK to close the World Wide Web Publishing Service (Local Service) dialog box.
  7. Make sure that the user who is logged on to the computer is one of the following users:
    • The user who is running the Web application pool
    • The user who starts a session in Microsoft Dynamics AX 4.0
    • The user who set up breakpoints in Microsoft Dynamics AX 4.0

转载请注明:ww12345678 的部落格 | AX Helper » [转]How to enable X++ debugging if you run Microsoft Dynamics AX 4.0 on an Enterprise Portal Web site and the .NET Business Connector is installed

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址