Hi
I have an annoying problem while using Write-Debug in ISE
Example Script:
for ($i = 0 ; $i -lt 10 ; $i++) { $i Write-Debug -Message "Loop" -Debug }
This will output $i then "Loop" then ask you to if to Continue with the options Yes/Yes to All/Halt Command/Suspend and repeat 10 times (If you select Yes)
The problem is if you run the script then select "Suspend", do something then write "exit" the output will not update until you "Suspend" again or "Halt Command" or Select "Yes" 10 times so the script will end.
How can I fix this or work around this?
Also is there any difference between "Yes" and "Yes to All" I don't see that "Yes to All" do something different then "Yes"
Thank you