Announcements
Hi,
Is it possible to do Multithreaded debugging in AX 2012 with ax debugger? Or Visual Studio?
Thanks
*This post is locked for comments
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
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?
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
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())); }
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.
Also class LedgerJournalTransUpdateCust
Has updatenow method , did you put debugger over there ? thanks
docs.microsoft.com/.../gg797126%28v%3dax.60%29
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sanhthosh.Kumar.K 2
Raed Salah Bzour 1