Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Debug LedgerJournalCheckPost.Run method

(0) ShareShare
ReportReport
Posted on by 1,858

Hi,

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

Thanks

*This post is locked for comments

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: Multithreaded debugging in ax 2012 r3

    Thanks. That was such stupid mistake.

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Multithreaded debugging in ax 2012 r3

    Also class LedgerJournalTransUpdateCust

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

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

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Multithreaded debugging in ax 2012 r3

    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.

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: Multithreaded debugging in ax 2012 r3

    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()));
    }
  • Suggested answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Multithreaded debugging in ax 2012 r3

    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
    MYGz 1,858 on at
    RE: Multithreaded debugging in ax 2012 r3

    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
    Sukrut Parab 71,647 Moderator on at
    RE: Multithreaded debugging in ax 2012 r3

    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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans