Beispiel #1
0
 /// <summary>
 /// PS execution terminating excpetion handler
 /// </summary>
 /// <param name="ex"></param>
 public void TerminateException(PowerShellRunTerminatingException ex)
 {
     if (TerminatingException != null)
     {
         // from editor debug run
         TerminatingException(this, new EventArgs <PowerShellRunTerminatingException>(ex));
     }
     else
     {
         // from REPL execution
         HostUi.VsOutputString(ex.Message);
     }
 }
 /// <summary>
 /// Execution engine has terminating exception thrown
 /// </summary>
 /// <param name="ex">DebuggingServiceException</param>
 public void TerminatingException(PowerShellRunTerminatingException ex)
 {
     Debugger.TerminateException(ex);
 }