Skip to content

Can't edit watch variables when paused in debugging #2396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JustinGrote opened this issue Dec 31, 2019 · 10 comments · Fixed by PowerShell/PowerShellEditorServices#1210
Closed
Labels

Comments

@JustinGrote
Copy link
Collaborator

Issue Description

When paused in the debugger:
Capture

This works fine with the stable extension, probably something to do with the backend rewrite.

Attached Logs

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19041
VSCode 1.42.0-insider
PowerShell Extension Version 2019.12.1

PowerShell Information

Name Value
PSVersion 5.1.19041.1
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.1
BuildVersion 10.0.19041.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-account ms-vscode 0.8.7
azure-pipelines ms-azure-devops 1.157.4
better-align wwm 1.1.6
better-comments aaron-bond 2.0.5
better-powershell-syntax-highlighting justin-grote 0.0.2
bracket-pair-colorizer-2 CoenraadS 0.0.29
code-settings-sync Shan 3.4.3
gc-excelviewer GrapeCity 2.1.32
gistfs vsls-contrib 0.0.38
git-graph mhutchie 1.20.0
gitlens eamodio 10.2.0
indent-rainbow oderwat 7.4.0
markdown-all-in-one yzhang 2.6.1
powershell-preview ms-vscode 2019.12.1-CI.41180
remote-containers ms-vscode-remote 0.96.0
remote-ssh-edit-nightly ms-vscode-remote 2019.12.34080
remote-ssh-nightly ms-vscode-remote 2019.12.34080
remote-wsl ms-vscode-remote 0.42.0
team ms-vsts 1.161.0
todo-tree Gruntfuggly 0.0.162
vscode-icons vscode-icons-team 9.7.0
vscode-peacock johnpapa 3.2.0
vscode-sort-json richie5um2 1.18.0
vscode-zipexplorer slevesque 0.3.1
@ghost ghost added the Needs: Triage Maintainer attention needed! label Dec 31, 2019
@SeeminglyScience
Copy link
Collaborator

@JustinGrote If you change them, then press enter in the integrated console, do they update?

@SydneyhSmith
Copy link
Collaborator

@JustinGrote thanks for reporting this...I am having a bit of trouble reproducing this...are you using a Debug configuration?

@JustinGrote
Copy link
Collaborator Author

JustinGrote commented Jan 7, 2020 via email

@SydneyhSmith SydneyhSmith added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Jan 7, 2020
@ghost
Copy link

ghost commented Jan 22, 2020

This issue is being closed as inactive, if this issue is still occurring it will be re-opened

@ghost ghost added the Resolution-Inactive Will close automatically. label Jan 22, 2020
@ghost ghost closed this as completed Jan 22, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Jan 27, 2020

I wonder if this is related to #2364

@rjmholt rjmholt added Issue-Bug A bug to squash. and removed Resolution-Inactive Will close automatically. labels Jan 27, 2020
@rjmholt rjmholt reopened this Jan 27, 2020
@JustinGrote
Copy link
Collaborator Author

@rjmholt @TylerLeonhardt Just confirming this is definitely still an active issue, I'll see it after doing complicated debugging, start/stopping debug etc. after 3-5 minutes or so, however I haven't been able to nail down a root cause.

I'll turn on Debug logging and see if I can catch it in the act and submit the logs.

@rjmholt
Copy link
Contributor

rjmholt commented Feb 28, 2020

Sorry, this was closed by accident in the PR I just merged. It may be fixed by that, but needs to be manually tested.

@JustinGrote
Copy link
Collaborator Author

@rjmholt thanks! I'll grab a CI build VSIX and give it a shot, this has been happening a lot to me during long interactive sessions.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Feb 29, 2020
@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Mar 3, 2020
@JustinGrote JustinGrote changed the title [Preview] Can't edit watch variables when paused in debugging Can't edit watch variables when paused in debugging Apr 2, 2020
@JustinGrote
Copy link
Collaborator Author

JustinGrote commented Apr 2, 2020

Just an update that this still happens to me all the time and I haven't been able to take the time to capture a full output or make it consistently reproducible, but it happens on 2020.3.2

It generally happens when I have this type of workflow:

  1. Set a breakpoint
  2. Start Powershell Interactive Session
  3. Run a script or command and hit said breakpoint
  4. Stop the debug rather than continue (I think the problem is in some cleanup somewhere here)
  5. Start Interactive Session Again
  6. Hit breakpoint but now I can't edit or change the watch variables, and they don't update

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Apr 2, 2020
@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Apr 2, 2020
@ghost
Copy link

ghost commented Aug 19, 2021

This issue was closed automatically as repro info was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information!

@ghost ghost closed this as completed Aug 19, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants