PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
633 stars 217 forks source link

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

Open SydneyhSmith opened 3 years ago

SydneyhSmith commented 3 years ago

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

rjmholt commented 3 years ago

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

JustinGrote commented 2 years ago

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

image

andyleejordan commented 2 years ago

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