PowerShell / PowerShell/vscode-powershell
Debugger - Hovering over global variables and script variables doesn't show values
Nobody has claimed this yet.
- 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):

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



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

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
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
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