Ejemplo n.º 1
0
 public void InitBreakpoints()
 {
     lock (this)
     {
         var debugging = Debugging;
         Debugging = false;
         var breakpointsScript = Breakpoints.Aggregate(string.Empty,
                                                       (current, breakpoint) =>
                                                       current + $"Set-PSBreakpoint -Script {DebugFile} -Line {breakpoint + 1}\n");
         ExecuteScriptPart(breakpointsScript, false, true, false);
         Breakpoints = new int[0];
         Debugging   = debugging;
     }
 }