Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

how to get X++ call stack

(0) ShareShare
ReportReport
Posted on by

Hello All,

I want to diagnose one of our process in UAT and identify the issue.

Is there anyway I can get all the object call stack for that process. For e.g. on Invoice posting, I want to see what different tables, classes and other objects are being called or used in stack wise manner?

Thank you

  • Verified answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: how to get X++ call stack

    Hi JeffGreenrc,

    As mentioned above, you can take traces by using Trace parser to consume traces and analyze performance in your deployment. You can also use the tool to visualize execution of X++ methods, as well as the execution call tree.

    learn.microsoft.com/.../trace-trace-tutorial

    learn.microsoft.com/.../trace-parser

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: how to get X++ call stack

    Hi Jeff, In addition to above responses, here's the link to debug UAT in Devbox. If you just want to know the AOT objects used in a process, As Andre mentioned, it can be done using Trace parser (Collect Trace from UAT and import in SQL server in your Devbox)

    aristonjavier.wordpress.com/.../

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,160 Super User 2025 Season 1 on at
    RE: how to get X++ call stack

    Hi JeffGreen,

    Like Nuno mentioned, you can use the debugger. You can also consider using the Trace parser to know what is being executed in detail.

  • nunomaia Profile Picture
    nunomaia 11 Super User 2024 Season 1 on at
    RE: how to get X++ call stack

    Can't you simple connect Visual Studio to sandbox and add a break point to see current stack ?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans