Business Central, fast debugging with AL Object Designer
Business Central, fast debugging with AL Object Designer
Debugging can be done in different ways, I want to report only how to do it with AL Object Designer. This great extension is always evolving, a must for every installation of VS Code and Microsoft AL.
With AL Object Designer, it is possible to manage all Business Central objects, both manually and through the Generation Wizard.
In this case, I used it to debug a standard object existing in the base APP (Warehouse Shipment Card in this case) very quickly.
Launch Al Object Designer
Search for “Warehouse Shipment” page object
Many features are available using “right click”
Click on “Warehouse Shipment” object NAME
After clicking, system extracts the page source code
Set up debugging where needed (in this case in “posting action”)
Start a debugging session by pressing F5
System launch a new business central session for debugging
- Open the Warehouse Shipment List\Card Page
- Click on “Posting”
System returns to debugging and allows you to run it, now you can debug the standard objects… quickly.
ERROR MESSAGE EXAMPLE
“VAT Identifier missing in Sales Order line….”
Thanks as always for your articles Roberto, always really helpful.
I’m Trying to debug an standard CodeUnit. I add the breakpoint into the CU, but debuging is not stopping there, just breaks on the error. I am trying to debug SaaS, not on premise.
May be I’m missing some type of configuration?
Thank you again!
i tested only for On-premise,
it may be that it does not stop at the right point, it is useful for detecting errors as in the example!
Hello Roberto,
I tested this approach for On-Premise but it did not work. Is it something special in Launch.json ? Or some other setting which I missed?
Thank you!