In most of the cases, our X++ classes have to be executing within the server (AOS). In a default deployment we're not able to debug server code. To have this Dynamics AX feature, we must enable it in ‘ Microsoft Dynamics AX Server Configuration Utility