PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

[Revamp pipeline thread handling] Support Enter-PSHostProcess and Debug-Runspace for Azure Functions etc.

Open SydneyhSmith opened this issue 4 years ago • 3 comments

Enter-PSHostProcess debugging is both an essential form of debugging, but also essential for PowerShell Azure Functions Host support. Because of PowerShell's quirks, we have to do special things to support it.

https://github.com/PowerShell/PowerShellEditorServices/blob/9e1a17a3ceabc1dc856ce90f4aac177c971c5c0a/src/PowerShellEditorServices/Services/DebugAdapter/Handlers/DisconnectHandler.cs#L53-L70

https://github.com/PowerShell/PowerShellEditorServices/blob/1ffe6db32e3aaeed0866497ed32a35e96f937390/src/PowerShellEditorServices/Services/DebugAdapter/Handlers/LaunchAndAttachHandler.cs#L396-L413

https://github.com/PowerShell/PowerShellEditorServices/blob/29e44b6ebdc63de70bd06538db03f3298ba2cfc6/src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs#L1491-L1548

Also see:

https://github.com/PowerShell/PowerShellEditorServices/blob/9e1a17a3ceabc1dc856ce90f4aac177c971c5c0a/src/PowerShellEditorServices/Services/PowerShellContext/Session/RunspaceDetails.cs#L13-L323

SydneyhSmith avatar Mar 29 '21 21:03 SydneyhSmith

To solve in https://github.com/PowerShell/PowerShellEditorServices/pull/1459

rjmholt avatar Oct 11 '21 23:10 rjmholt

FYI this has NOT been solved by #1459 and remains an open issue @andschwa CC @anatolib

image

JustinGrote avatar Nov 29 '21 06:11 JustinGrote

Can I react with a :sob: for that? :sob:

andyleejordan avatar Nov 30 '21 21:11 andyleejordan