PowerShell / PowerShell/vscode-powershell

Debugger - Hovering over global variables and script variables doesn't show values

Open
#3,280 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Debugging Issue-Bug Up for Grabs
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Issue Description

In debug mode hovering over global variables or script variables doesn't show any values. If I hover over other "normal" variables the current value is displayed.

Expected behaviour (mouse hovered over $a):
image

Actual behaviour (mouse hovered over $global:b):
image

image

image

Compared with standard PowerShell ISE where it works (mouse hovered over $global:b):
image

VSCode version: 1.55.0 c185983a683d14c396952dd432459097bc7f757f x64
VSCode extensions:

ms-vscode.powershell@2021.2.2
ms-vscode.powershell-preview@2021.4.1
(tested with both, no difference)

PSES version: 2.3.0.0
PowerShell version:

Name Value


PSVersion 5.1.19041.610
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.610
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

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

Reproduce the issue in the VS Code debugger using global and script variables, comparing their hover behavior with normal variables. Trace the debugger hover or evaluation path across the PowerShell extension and PSES, using the versions listed in the report; done means hovering over variables such as $global:b displays their current values.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
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.