Dynamics 365 Business Central: View the actual error message in the debugger

Today I would like to share a mini tip when debugging in VS Code, viewing the error message in the debugger.

The process of finding and correcting errors is called debugging. With Visual Studio Code and the AL Language extension you get an integrated debugger to help you inspect your code to verify that your application can run as expected.

Source : Dynamics 365 Lab
Read more…

Dynamics 365 Business Central: View the actual error message in the debugger

Today I would like to share a mini tip when debugging in VS Code, viewing the error message in the debugger.

The process of finding and correcting errors is called debugging. With Visual Studio Code and the AL Language extension you get an integrated debugger to help you inspect your code to verify that your application can run as expected.

Source : Dynamics 365 Lab
Read more…

Part 4: (Slightly) More Elegant Error Handling in Business Central

In part 3 we had a look at the new platform feature, collectible errors. Long story short: it makes scenarios where you want to collect and display multiple errors together (e.g. checking journal lines) much easier to code and read, no messing around with if Codeunit.Run then, read the post if you’re interested.

Source : James Pearson
Read more…