To debug Intermediate Language (IL) code you need to use visual studio. To know details about debugging services steps you need to visit link below.
Debugging services in Ax 2012
To know in more details about debug batch job you can visit this link.
Debug batch jobs and service operations in Dynamics AX 2012
Debugging services in Ax 2012
To know in more details about debug batch job you can visit this link.
Debug batch jobs and service operations in Dynamics AX 2012