How to do it...

  1. Open your project in Visual Studio Code.
  2. In Explorer, select Television Show.al and in the Editor, click on the following line of code and press F9 to set a breakpoint:
if "Last Aired" = 0D then

This will cause the debugger to stop any time this line of code is executed.

Setting a breakpoint is one way to launch the debugger. You can also set properties in launch.json to have the debugger launch when an error occurs or any time a record is updated in the system.
  1. Press F5 to build and deploy the project to your sandbox. Once you log in, follow these steps:
    1. Use the  icon to search for Television Show List and click it to open the page.
    2. Select an existing Television Show entry to open it and edit either of the date fields.

Once you validate one of the date fields, you'll notice, in Visual Studio Code, that the debugger has activated and is now sitting on the breakpoint that you set, like this:

You can use the controls on the debugging toolbar to move through the lines of code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.5.239