Skip to content

Null Stack if debugging in separate process #3673

Closed
PowerShell/PowerShellEditorServices
#1630
@JustinGrote

Description

@JustinGrote

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

Metadata

Metadata

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions