Skip to content
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

Null Stack if debugging in separate process #3673

Closed
5 tasks done
JustinGrote opened this issue Nov 5, 2021 · 3 comments · Fixed by PowerShell/PowerShellEditorServices#1630
Closed
5 tasks done

Null Stack if debugging in separate process #3673

JustinGrote opened this issue Nov 5, 2021 · 3 comments · Fixed by PowerShell/PowerShellEditorServices#1630
Assignees
Labels
Area-Debugging Bug: Pre-release Bugs reproducing only in the pre-release extension. Issue-Bug A bug to squash.

Comments

@JustinGrote
Copy link
Collaborator

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

When starting Wait-Debugger, a nullpointerexception happens due to the lack of stackFrameDetails

PowerShell Version

7.1

Visual Studio Code Version

1.63.0-insider

Extension Version

Preview

Steps to Reproduce

  1. Enter-PSHostSession <some other pwsh.exe>
  2. Wait-Debugger

Visuals

image

Logs

Exception has occurred: CLR/System.NullReferenceException
An exception of type 'System.NullReferenceException' occurred in Microsoft.PowerShell.EditorServices.dll but was not handled in user code: 'Object reference not set to an instance of an object.'
at Microsoft.PowerShell.EditorServices.Services.DebugService.d__53.MoveNext() in C:\Users\JGrote\Projects\PowerShellEditorServices\src\PowerShellEditorServices\Services\DebugAdapter\DebugService.cs:line 953

@JustinGrote JustinGrote added the Issue-Bug A bug to squash. label Nov 5, 2021
@ghost ghost added the Needs: Triage Maintainer attention needed! label Nov 5, 2021
@andyleejordan
Copy link
Member

What do you think would be the proper behavior here?

@andyleejordan andyleejordan self-assigned this Nov 5, 2021
@andyleejordan andyleejordan added Area-Debugging and removed Needs: Triage Maintainer attention needed! labels Nov 5, 2021
@andyleejordan andyleejordan added this to the Committed-vNext milestone Nov 5, 2021
@JustinGrote
Copy link
Collaborator Author

@andschwa found this as a side effect of the variable stuff, I'll probably fix it in that PR, just wanted to note it here.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Nov 5, 2021
@andyleejordan
Copy link
Member

Love it, keep it all coming! You rock.

@andyleejordan andyleejordan added Bug: Pre-release Bugs reproducing only in the pre-release extension. and removed Needs: Maintainer Attention Maintainer attention needed! labels Nov 5, 2021
@andyleejordan andyleejordan changed the title [Preview] Null Stack if debugging in separate process Null Stack if debugging in separate process Nov 5, 2021
@andyleejordan andyleejordan moved this from Todo to Done in Sea Biscuit Jan 24, 2022
@andyleejordan andyleejordan moved this to Todo in Sea Biscuit Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Bug: Pre-release Bugs reproducing only in the pre-release extension. Issue-Bug A bug to squash.
Projects
No open projects
Status: Done
2 participants