There was an error while loading. Please reload this page.
1 parent 1a62125 commit 0480ab6Copy full SHA for 0480ab6
src/PowerShellEditorServices/Services/PowerShell/Debugging/PowerShellDebugContext.cs
@@ -67,6 +67,8 @@ public Task<DscBreakpointCapability> GetDscBreakpointCapabilityAsync(Cancellatio
67
68
public void EnableDebugMode()
69
{
70
+ // This is required by the PowerShell API so that remote debugging works.
71
+ // Without it, a runspace may not have these options set and attempting to set breakpoints remotely can fail.
72
_psesHost.Runspace.Debugger.SetDebugMode(DebugModes.LocalScript | DebugModes.RemoteScript);
73
}
74
0 commit comments