You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By creating a Proxy function of Set-PSBreakpoint, we can fire the breakpoint event as seen in the DAP spec to notify the client that a breakpoint has been added.
This is the really the final feature needed to provide the "console debugging in PSES experience" that feels totally integrated.
Then we'll need a way to give the EditorObject the state of the debugger... but mainly the JsonRpcServer object so that we can use it to send the SendNotification( method to send the breakpoint information to the client.
Then we take that proxy function and add something like:
By creating a Proxy function of
Set-PSBreakpoint
, we can fire the breakpoint event as seen in the DAP spec to notify the client that a breakpoint has been added.This is the really the final feature needed to provide the "console debugging in PSES experience" that feels totally integrated.
Creating a Proxy cmdlet is easy with:
Then we'll need a way to give the
EditorObject
the state of the debugger... but mainly theJsonRpcServer
object so that we can use it to send theSendNotification(
method to send the breakpoint information to the client.Then we take that proxy function and add something like:
with some error handling and we should be good to go.
The text was updated successfully, but these errors were encountered: