Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Effective code

Posted on by 315

Hello,

What are the steps I should take to make sure 100% that the code I wrote is the code which is executed and not any other complied or cached version?

Any help is most appreciated.

Thanks in advance.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Effective code

    Hi,

    If you are using CIL, then make sure to run at least incremental CIL.

    If it is using CIL, then close AX, clean your .auc files, open AX and test.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Effective code

    Please tell us more about your situation. For example, there is a difference in how infolog messages are displayed when running code synchronously, asynchronously, in a batch or in a web service. Debugging is also done differently in different context - most importantly, CIL requires a different debugger than X++.

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: Effective code

    The  debugger doesn't stop at breakpoints and the info messages are not appearing.

  • Suggested answer
    Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: Effective code

    You can debug and go through every line of code. If you don't want that - another option is to add messages at different places for infolog or print, verify code run and then remove these messages.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans