web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Need some X++ debugging tips

(0) ShareShare
ReportReport
Posted on by 35

Hi all,

I’m looking for some debugging tips.

How can we identify which code executes when a particular UI action is performed? For example, while posting a product receipt, how do we determine the exact class and method responsible for the posting logic?

In such scenarios, where and how should we place breakpoints?

(I already know about setting a breakpoint on the Info.add method to catch any info/warning/error messages.)

Categories:
I have the same question (0)
  • Suggested answer
    Subra Profile Picture
    716 on at
    Hi @MohammadSaif

    Please find the form and table name from UI and GO to Visual Studio find the object in AOT.

    In the form find the control and check we have any specific methods for control. if yes, please enable the breakpoint in the methods and do the debugging.

    Additionaly, using callstack you can find all the information which call has been for the product receipt posting.

     
    Thanks,
    Subra

    If this helped, please mark it as "Verified" for others facing the same issue
  • Martin Dráb Profile Picture
    239,616 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
     
    In general, you either know a step in the process where you can put a breakpoint (e.g. insert() method of a table), or you start from the entry point, e.g. the class called by a menu item button.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 804

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 639 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 528

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans