-
Notifications
You must be signed in to change notification settings - Fork 235
PSES crashing while debugging #701
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
Comments
Unfortunately that error is probably unrelated to the crash. That error is expected when debugging a script where a frame in the call stack is within a module. The number of scopes iterated when getting variables is based on the number of frames in the call stack. But because each A possible fix would be to check the module of the command listed in the scope with $fakeModule = [psmoduleinfo]::new($false)
$fakeModule.SessionState = $topLevelSessionState
. $fakeModule { Get-Variable -Scope x } But that's probably not intended behavior and is likely as dangerous as reflection. All that said, this error is caught and wouldn't cause any crashes, we just don't get as much info for each frame as we'd like. |
Can't remember why I opened this issue. Possible to track the error I saw in the logs there?? Anyway, based on what you say @SeeminglyScience, we probably handle it as well as anything for now. |
From PowerShell/vscode-powershell#1422 (comment).
Seems to be a crash in the debugger.
Possibly this one:
The text was updated successfully, but these errors were encountered: