Thanks. Do you know of a way to enter a command line for a script in the ISE? You can't change $args, though I guess you could edit the script to set the args before debugging...
"Marco Shaw [MVP]" <marco.shaw[ at ]_NO_SPAM_gmail.com> wrote in message news:%23wQ2ll9ZJHA.2084[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text] > James wrote: >> In the powershell ISE, I type in a few commands in the script window or >> load a script, and want to step through the code, but all the debug >> commands are greyed out and F11 does nothing? What do I need to do to >> step through code? > > Go to the first line of your code, for example, do Debug->Toggle > Breakpoint, then Debug->Run/Continue. > > Then your menu should come "alive"... > > Marco > > -- > *Microsoft MVP - Admin Frameworks > https://mvp.support.microsoft.com/profile/Marco.Shaw> *Co-Author - Sams Windows PowerShell Unleashed 2nd Edition (due December > 15th, 2008) > *PowerShell Co-Community Director - http://www.powershellcommunity.org> *Blog - http://marcoshaw.blogspot.com
|