To debug the X++ code from Visual Studio, follow these steps:
1. Open Visual Studio 2010.
2. Click Debug > Options and Settings. Expand the Debugging node, and then select the General node. Make sure that the "Enable just my code" is unchecked, and then click OK.
3. Click Debug > Attach to Process. Click Select, and then select Managed (v4.0) code and then click OK. Highlight Ax32Serv.exe in the list and then click Attach. Click Attach again to confirm.
4. If the Application Explorer is not already open, click the Application Explorer icon in the toolbar.
5. Open the object where the code is that you want to debug. For example, expand Classes, and then select the class that is running your service. Open a method by double-clicking.
6. Select the line you want to debug and press F9 to set the breakpoint.
7. Click F5 to run the code.
8. Verify the process stops at the breakpoint within the X++ code.
Regards,
Hossein Karimi
Friday, July 27, 2018
Using Visual Studio 2010 to Debug Services
Labels:
AX 2012,
Installation,
Visual Studio
+10 years of experience with hands-on lead-level background in the full life cycle of software development with demonstrated cross-functional team leadership skills.
Programming:
• ERP :Microsoft Dynamics AX 2012
• Language :X++, C#, C++, XAML, Asp.Net, Html, VB.Net, Android
• Environment : Windows XP, Windows 8, Windows 10, Windows Server
• DataBase : Oracle 9i,10g,11g and SqlServer and SQLlite
Subscribe to:
Post Comments (Atom)
Configure the Firewall on the Enterprise Portal Server
After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...
-
In Reporting Services, reports and resources are processed under the security identity of the user who is running the report. If the report ...
-
The below select query will give the both the Sales Line record count and the sum of sales quantity. static void Test_Data(Args _args) ...
-
To integrate Microsoft Dynamics AX and Analysis Services, you must connect Analysis Services to the Application Object Server (AOS). To do s...
No comments:
Post a Comment