Showing posts with label compile ax 2012. Show all posts
Showing posts with label compile ax 2012. Show all posts

Monday, December 16, 2013

Debugging AX while still using restricted roles while being NON Admin- Ax 2012 / Dynamics Ax

Debugging AX while still using restricted roles (non-admin)

Debugging while being non admin to test certain functionality
1.       Close All AX instances

2.       Open AX Development Environment (ax32.exe -development)

3.       Open AX Application (ax32.exe)

4.       Add Role that you would like to test to your UserId

a.       System Administration > Common > Users

b.      Find yourself and double click to get to the detail window

c.       Assign role that you want to test

5.       Close AX Application

6.       Set break points in AX Development Environment

7.       Create a job and add this line

             SecurityUtil::sysAdminMode(false);
 
8.       From the AX Development Environment “Ctrl W” to open the application

9.       You are now in a reduced permission user and have the ability to debug. J
 

To get your environment back to full admin, re-execute the job in step 7 with a true.
GOt this from 

Thursday, December 12, 2013

AX 2012 R2 CU7 Faster Compilation, Really Fast !!

AX 2012 , latest cu7 brings about a major change in the the architecture of AX compilation and build. It uses AXBuild to compile the application faster.
 You can find it in the servers bin directory (C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin on my system) One of the parameters is the number of Workers to use, this allows the compiler to use all the cores available in your system instead of 1 the traditional compile uses. But if I understand the documentation correctly AxBuild.exe is even capable itself to decide the number of workers based on the configuration it runs on. So potentially no need to specify them.
AxBuild.exe can accomplish a full compile of all X++ code, into AX p-code, many times faster than the traditional compile that you start from the MorphX client menu. AxBuild.exe is run on the Application Object Server (AOS) tier at a cmd.exe command prompt. This topic explains what AxBuild.exe does and how to use it.