VSCode Watch does not work for Fields of Record variables
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 881
- Forks
- 285
- Avg merge
- 3d 36m
- Merged PRs (30d)
- 1
Description
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

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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Visual Studio Code Watch window with the AL Language extension and reproduce the issue using a Field of a Record variable, following the attached GIF. The work is done when watching the field resolves to its correct value without manually adding the Record variable name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100