Powershell ISE Suspend Debug option stop the output


hi

i have annoying problem while using write-debug in ise

example script:

for ($i = 0 ; $i -lt 10 ; $i++)  {      $i      write-debug -message "loop" -debug  }

this output $i "loop" ask if continue options yes/yes all/halt command/suspend , repeat 10 times (if select yes)

the problem if run script select "suspend", write "exit" output not update until "suspend" again or "halt command" or select "yes" 10 times script end.

how can fix or work around this?

also there difference between "yes" , "yes all" don't see "yes all" different "yes"

thank you

ps d:\scripts> set-psbreakpoint -command write-host    id script                      line command                     variable                   action   -- ------                      ---- -------                     --------                   ------    0                                  write-host   ps d:\scripts> ($i = 0 ; $i -lt 10 ; $i++) >> { >>     $i >>     write-host 'test'} 0 entering debug mode. use h or ? help.  hit command breakpoint on 'write-host'  @ line:4 char:5 +     write-host 'test'} +     ~~~~~~~~~~~~~~~~~ [dbg]: ps d:\scripts>> ?   s, stepinto         single step (step functions, scripts, etc.)  v, stepover         step next statement (step on functions, scripts, etc.)  o, stepout          step out of current function, script, etc.   c, continue         continue operation  q, quit             stop operation , exit debugger  d, detach           continue operation , detach debugger.   k, get-pscallstack  display call stack   l, list             list source code current script.                      use "list" start current line, "list <m>"                      start line <m>, , "list <m> <n>" list <n>                      lines starting line <m>   <enter>             repeat last command if stepinto, stepover or list 


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...