Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Batch server Vs Debugging X++ code running on Server

(0) ShareShare
ReportReport
Posted on by 1,307

Hi,

We have an AOS server and Batch server separately. This is a development and testing environment. Our batch server is working only when Enable breakpoints to debug x++ running on server is  turned OFF. Enabling this parameter will make AOS restart.

VSDTESTAOS1_5F00_ServerConfig.png

to debug x++ code running on server, I have to turn this ON. for that, I had to stop my colleagues working, save their stuff and enable the parameter which in turn restarts AOS and then i have to do my debugging.

I believe there should be a easier way of handling this?

Lakshmi

*This post is locked for comments

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Batch server Vs Debugging X++ code running on Server

    Enabling the flag does require restart indeed.

    If the restart is not initiated by you, then it might be a crash. We have noticed that sometimes leftover breakpoints could cause AOS process crash in certain places, thus our way of avoiding this is the following:

    - Enable the flag, do not restart AOS instance.

    - Stop AX AOS service manually

    - Truncate the SysBreakpoints and SysBreakpointList table in SQL Server

    - Start the AX AOS service

    Alternatively when you want to switch back to non-debugging mode, you could clear the breakpoints list at that time.

    Other than the above it implies that you do not have version control in place, so I strongly agree with Martin that you need to have separate developer instances (with proper version control enabled), and also a build/release process of placing code on your Test environment. That way debugging the functionality currently being tested should not interfere with other developers' work.

  • Martin Dráb Profile Picture
    233,305 Most Valuable Professional on at
    RE: Batch server Vs Debugging X++ code running on Server

    If it's a development environment, why don't you keep debugging enabled. Also note that having two AOS servers in a development environment is very unusual, because it complicates deployment and it's not needed from performance perspective.

    And having a single environment for both development and testing usually doesn't make a good sense. Development in progress could prevent testers from testing, you already complain about not being able to debug, you wouldn't test deployment and so on.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 46

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans