microsoft / microsoft/AL

VSCode Watch does not work for Fields of Record variables

Open
#5,639 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger external
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
Issue Watches

5. Versions:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.