Example #1
0
 /// <summary>
 /// Retrieve local scoped variable from debugger(in PSHost proc)
 /// </summary>
 private void RefreshScopedVariables()
 {
     try
     {
         Collection <Variable> vars = DebuggingService.GetScopedVariable();
         Variables = new Dictionary <string, Variable>();
         foreach (Variable v in vars)
         {
             Variables.Add(v.VarName, v);
         }
     }
     catch (Exception ex)
     {
         Log.Error("Failed to refresh scoped variables.", ex);
         throw;
     }
 }