-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Reinstate debugging API lost in #10338 #10808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -625,6 +625,13 @@ public virtual IEnumerable<CallStackFrame> GetCallStack() | |
| public virtual Breakpoint GetBreakpoint(int id) => | ||
|
||
| throw new PSNotImplementedException(); | ||
|
|
||
| /// <summary> | ||
| /// Adds the provided set of breakpoints to the debugger. | ||
| /// </summary> | ||
| /// <param name="breakpoints">Breakpoints.</param> | ||
| public virtual void SetBreakpoints(IEnumerable<Breakpoint> breakpoints) => | ||
| throw new PSNotImplementedException(); | ||
|
|
||
| /// <summary> | ||
| /// Returns breakpoints primarily for the Get-PSBreakpoint cmdlet. | ||
| /// </summary> | ||
|
|
@@ -2580,6 +2587,31 @@ internal override UnhandledBreakpointProcessingMode UnhandledBreakpointMode | |
|
|
||
| #region Breakpoints | ||
|
|
||
| /// <summary> | ||
| /// Adds the provided set of breakpoints to the debugger. | ||
| /// </summary> | ||
| /// <param name="breakpoints"></param> | ||
| public override void SetBreakpoints(IEnumerable<Breakpoint> breakpoints) | ||
| { | ||
| foreach (Breakpoint bp in breakpoints) | ||
| { | ||
| switch (bp) | ||
| { | ||
| case CommandBreakpoint commandBreakpoint: | ||
| AddCommandBreakpoint(commandBreakpoint); | ||
| continue; | ||
|
|
||
| case LineBreakpoint lineBreakpoint: | ||
| AddLineBreakpoint(lineBreakpoint); | ||
| continue; | ||
|
|
||
| case VariableBreakpoint variableBreakpoint: | ||
| AddVariableBreakpoint(variableBreakpoint); | ||
| continue; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Get a breakpoint by id, primarily for Enable/Disable/Remove-PSBreakpoint cmdlets. | ||
| /// </summary> | ||
|
|
@@ -4048,6 +4080,13 @@ public NestedRunspaceDebugger( | |
|
|
||
| #region Overrides | ||
|
|
||
| /// <summary> | ||
| /// Adds the provided set of breakpoints to the debugger. | ||
| /// </summary> | ||
| /// <param name="breakpoints">Breakpoints.</param> | ||
| public override void SetBreakpoints(IEnumerable<Breakpoint> breakpoints) => | ||
| _wrappedDebugger.SetBreakpoints(breakpoints); | ||
|
|
||
| /// <summary> | ||
| /// Process debugger or PowerShell command/script. | ||
| /// </summary> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.