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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

Debug LedgerJournalCheckPost.Run method

(0) ShareShare
ReportReport
Posted on by 2,473

Hi,

Is it possible to do Multithreaded debugging in AX 2012 with ax debugger? Or Visual Studio?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    What do you mean by Multithreaded debugging ?  Do you want to debug multithreaded applications ? In Visual studio its possible . Check below link

    docs.microsoft.com/.../debug-multithreaded-applications-in-visual-studio

    docs.microsoft.com/.../walkthrough-debugging-a-multithreaded-application

  • MYGz Profile Picture
    2,473 on at

    I was trying to debug ledgerjournalcheckpost.run() method. But if you see the stacktrace there is a disconnect at one point between two methods. I was wondering if a different thread is spawned at that moment or something like that.

    Can we do multithreaded debugging for X++ code in Visual Studio?

  • Suggested answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    Can you please provide information about where is disconnect . You should be able to debug ledgerjournalcheckpost classes with normal debugging in AX 2012. You really don't need multithreading

  • MYGz Profile Picture
    2,473 on at

    Yes. Can you explain this:

    [s]    \Classes\CustVendVoucher\post                                                                          25
    [s]    \Classes\CustVoucher\post                                                                              48
    [s]    \Classes\LedgerJournalTransUpdateCust\postNewCustomerVoucher                                          180
    [s]    \Classes\LedgerJournalTransUpdateCust\updateNow                                                       301
    [s]    \Classes\LedgerJournalCheckPost\postTrans                                                             268
    [s]    \Classes\LedgerJournalCheckPost\postJournal                                                           912
    [s]    \Classes\LedgerJournalCheckPost\run                                                                   158
    [s]    \Classes\LedgerJournalPost\post                                                                       148
    [c]    \Classes\LedgerJournalPost\main                                                                        26
    [c]    \Classes\FormFunctionButtonControl\Clicked                                                               
    [c]    \Forms\LedgerJournalTable\Designs\DesignList\Post\Methods\Clicked                                      24

    I have set a breakpoint on 

    \Classes\CustVendVoucher\post


    I'm unable to find out how postNewCustomerVoucher gets pushed on the stack after UpdateNow because there is no code in UpdateNow. I also tried to find it in other methods on the stack but couldn't find it.

    void updateNow(LedgerVoucher _ledgerVoucher,
                   LedgerPostingType _posting,
                   LedgerJournalTrans _ledgerJournalTrans,
                   LedgerJournalTrans _originalLedgerJournalTrans,
                   boolean _interCompany = false,
                   boolean _reversalsMayExist = true,
                   boolean _isDueToDueFromAccount = false)
    {
        throw error(Error::missingOverload(funcName()));
    }
  • Verified answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    You are looking at base class method in class hierarchy. Check in the debugger object of which class is created . Update now method of that class must have some logic. Check if custvendvoucher has updatenow method.

  • Verified answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    Also class LedgerJournalTransUpdateCust

    Has updatenow method , did you put debugger over there ? thanks

    docs.microsoft.com/.../gg797126%28v%3dax.60%29

  • MYGz Profile Picture
    2,473 on at

    Thanks. That was such stupid mistake.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans