Hi,
Is it possible to do Multithreaded debugging in AX 2012 with ax debugger? Or Visual Studio?
Thanks
*This post is locked for comments
Hi,
Is it possible to do Multithreaded debugging in AX 2012 with ax debugger? Or Visual Studio?
Thanks
*This post is locked for comments
Thanks. That was such stupid mistake.
Also class LedgerJournalTransUpdateCust
Has updatenow method , did you put debugger over there ? thanks
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.
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())); }
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
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?
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
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156