Total Pageviews

Search This Blog

Tuesday, October 30, 2007

How to Enable X++ debugging for Dynamics Ax 4.0 Enterprise Portal

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. 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:
a. Click Start, click Run, type Control admintools, and then click OK.
b. Double-click Microsoft Dynamics AX Configuration Utility.
c. In the Configuration target list, click Business Connector (Non-interactive use only).
d. 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.
e. 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:
a.On the Tools menu, click Options.
b.Click the Development tab.
c. In the Debug mode box, click When Breakpoint.
d. 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:
a. Click Start, point to All Programs, point to Administrative Tools, and then click Services.
b. Right-click World Wide Web Publishing Service, and then click Properties.
c. Click the Log On tab.
d. Click to select the Allow service to interact with desktop check box.
e. 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

9 comments:

Anonymous said...

Hi Dilip

thanks
could you please tell me how to start debugger in Ax3.0 enterprise portal?
suresh

Anonymous said...

Suresh,

Please try this:

http://www.eggheadcafe.com/software/aspnet/31101533/if-is-it-possible-to-debu.aspx

If i recollect correctly, there's a class called WebSession in 3.0 which has an init method which is the entry point. Please try it and let me know.

Regards.
Dilip

Anonymous said...

Hi Dilip

Thanks for the information.
Is there any possibilities that we can debug in client machine? by using console session, we will have limit access to the server for debugging.

Thanks.
Regards,
ck

Anonymous said...

Thanks a lot ! Your post very helpful to me.
DINESH

Unknown said...

Hi. I have tried everything you said, with no luck. I don't understand what I do wrong. How can i contact you? I would really appreciate your help.. :)

Anonymous said...

Good fill someone in on and this enter helped me alot in my college assignement. Thank you for your information.

Anonymous said...

Hi, system (event viewer) says the debug is not enabled for user Admin. I doble checked everything ans seens ok :(

any hint?

Dilip said...

Hi,

Please make sure that in Server Configuraion Utility Debugging X++ is enabled, You might need to restart once you change the settings. For further queries, you can reach me on dilipn123ATgmail.com

Regards,
Dilip

Anonymous said...

Amiable dispatch and this post helped me alot in my college assignement. Say thank you you on your information.