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.
How to activate the Debugger in Business Central
Define the Web Client Base URL in the Business Central administration: To configure the Web Client Base URL, open the Business Central administration tool. In Client Services Tab, you will find “Web Client Base URL” section. In this section define your web client URL
In our example, Web Client URL is http://localhost:8080/BC160/
Check “Enable Debugging” property.
Open the Business Central administration tool. In Development Tab, Set “Enable Debugging” to TRUE
Check “Enable Debugging” property. Restart the BC server instance.
Now go to the AL Project and keep the break point in the code.