Step-by-step debugging sample

Let's take a scenario to debug the OnAfterGetRecord trigger in the item table.

  1. Start running Visual Studio Code with AL language for Dynamics 365 Business Central:
You can use a local or online sandbox to test debugging; take a look at the Chapter 14, Working and Developing with Docker and Sandboxes, example with Microsoft Cloud Sandbox (https://businesscentral.dynamics.com/sandbox).
  1. Create a new HelloWorld sample.
  2. Change launch.json to start with page 31 (item list).
  1. Change the app.json file to look like the following by adding two extra parameters, showMyCode and target:
  1. Download the symbols.
  2. Rename ...

Get Implementing Microsoft Dynamics 365 Business Central On-Premise - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.