-
Notifications
You must be signed in to change notification settings - Fork 498
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
Auto Variables tab not populating since last update, also breakpoints ghosting #614
Comments
I am having the same problem with a similar system configuration. |
Thanks for the pointers, I'll take a look for next week's patch update. |
Hey @rkeithhill, do you mind looking into this one? |
Can do. Hmm, looks like this changed with 0.11.0 contrary to the OP version info. In 0.10.2 it was working correctly. And in fact, the logs don't lie - |
Nah, I didn't touch the variable path. I did touch the path where watch variables are resolved (the EvaluateRequest) but I only changed the behavior when you are typing a command into the Debug Console. Who knows though, I could have broken something else that lead to this. |
I was wrong. This bug is in 0.10.x. But is mitigated if you break inside a function. There are several issues going on here. First there were some issues with the conversion of the However there is a bigger issue here that deals with the debugger now |
Yeah, that's a little unfortunate and might be confusing to the user. Maybe there's some way we can take a snapshot of the variables in the session just before dot sourcing the debugged script the first time so that we can keep track of which new variables might have been added by running the script? |
Are we sure we want to always dot source the debugged script? Yeah, I get that ISE did it that way but it doesn't necessarily make it the best way. For instance, this can lead to scripts where setting a global variable without the That's a significant behavior change between debug and normal execution. I'd prefer a safe debug environment that allows folks to dot source if they want to. And users can already dot source script into the IC w/F8. Perhaps we could make this a debug configuration option - RE snapshot of variables - you would want to show a script scope variable that normally shadows a global variable but in this scheme you wouldn't show that variable in The other problem I have with PS debugging is determining which scope the top stack frame corresponds to. Get-Variable has s Scope parameter that takes either |
Another option is checking if the |
@daviwil Where is the best place to do that? In the DebugService ctor? |
Before trying any further magic to make globals not show up in Auto, let's talk about another approach:
What do you think? Making the dot-sourcing behavior an option will cause some confusion in 0.12.0 but so long as we make it clear that there's an option to control the behavior now I think it should be fine. |
That seems like a reasonable approach. One question is what should the default be? I'd vote for not dot-sourced by default but that's just one vote. :-) |
Yep, I was thinking it should be turned off by default. The more disruptive behavior should be opt-in. |
System Details
$PSVersionTable
:Name Value
PSVersion 5.1.14393.206
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.206
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
debug Variables window under watcher is not populating, when a breakpoint is hit
the only thing that is showing there is $__psEditorServices_CallStack
in addition once you clear the break points and run the debugger using (current file) option it still breaks on the same breakpoints even though they are cleared.
Attached Logs
1490359376-d56af262-7155-4476-8182-b6bcffeff9111490359374739.zip
Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems
1490359376-d56af262-7155-4476-8182-b6bcffeff9111490359374739.zip
)
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: