AL icon indicating copy to clipboard operation
AL copied to clipboard

VSCode Watch does not work for Fields of Record variables

Open daansaveyn opened this issue 5 years ago • 3 comments

Describe the bug When you're debugging an App and you try to add a Watch on a Field of a Record variable, the Watch window shows the Field incorrectly as "Out Of Scope".

To Reproduce See attached GIF below

Expected behavior The Watch window should show the correct Field value by adding the name of the Record variable (as was manually done in the GIF below)

Screenshots Issue Watches

5. Versions:

  • AL Language: Name: AL Language Id: ms-dynamics-smb.al Description: AL development tools for Dynamics 365 Business Central Version: 5.0.208981 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
  • Business Central: Version: W1 15.2 (Platform 15.0.38951.0 + Application 14.0.29530.0)

daansaveyn avatar Feb 04 '20 10:02 daansaveyn

These are deficiencies in the VSCode debug adapter protocol we are using, the integration piece in VsCode. Scenarios like this are not really supported for now. We will see what we can do about it, but I would not bet on short term resolution.

kalberes avatar Feb 05 '20 11:02 kalberes

@atoader I think this problem needs some attention. It is still not solved 1 1/2 years after the opening of the issues.

image

DanielGoehler avatar Jul 29 '21 21:07 DanielGoehler

i have just tested the WATCH and as of today using the latest available BC and VS Code version the issue is still there :(

jpbagdonas avatar Aug 06 '22 18:08 jpbagdonas