preventing a cmdlet from freezing powershell
I created a cmdlet that automates keystrokes to window. When I attached that window to the debugger and perform long debugging operations, powershell freezes and even ctrl+c is not recogni开发者_高级运维zed.
Can you help me with this? thanks :)
Try to start a background-job (http://msdn.microsoft.com/en-us/library/dd878288(v=vs.85).aspx). You can work while your command is executed in the background and look at the results with receive-job or look at the status with get-job).
精彩评论