

Run the code in MorphX or step through the code in the Microsoft Dynamics AX debugger. In Visual Studio, attach the debugger to the server process (Ax32Serv.exe). Use Application Explorer to open the X++ source code called by the runAs function and then set a breakpoint. Open your X++ code in the MorphX code editor and set a breakpoint on the line of code that calls the runAs function. The high-level process for debugging code called from a runAs function by using the Visual Studio debugger is as follows: Because the method runs in CIL, you must use Visual Studio to debug it. You can only use this command to run code that runs on the server. In X++, you can use the runAs function to call a static method and specify that it is executed in CIL. For more information, see Microsoft Dynamics AX Debugger. You can continue to step through the code in the debugger. When you run the code, execution stops at the breakpoint and the Microsoft Dynamics AX debugger opens. To debug X++ code, you set a breakpoint in the MorphX code editor. Runs on the server and is not executed in CIL You can use this debugger to debug X++ code that: This is the full-featured debugger that is part of the MorphX suite of tools. To debug X++ code, you use the Microsoft Dynamics AX debugger. The process for debugging X++ code varies depending on whether you are debugging standard X++ code or X++ code that is executed in Common Intermediate Language (CIL). These debugging scenarios include the following: This topic provides an overview of common debugging scenarios and information about which debugger to use. NET development are integrated, debugging may require that you use the Microsoft Dynamics AX debugger and the Visual Studio debugger depending on your development scenario. The development environment you use is either the MorphX Integrated Development Environment (IDE) or the Visual Studio IDE depending on the type of development you are doing.īecause X++ and. In Microsoft Dynamics AX 2012, development can be done in both X++ and. Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
