Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: General » microsoft.public.windows.powershell
Thread: CTP3 debug commands greyed out in powershell ISE?

HTVi
TV Discussion Newsgroups

CTP3 debug commands greyed out in powershell ISE?
"James" <no[ at ]email.com> 12/27/2008 12:58:48 AM
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?

Re: CTP3 debug commands greyed out in powershell ISE?
"Marco Shaw [MVP]" <marco.shaw[ at ]_NO_SPAM_gmail.com> 12/27/2008 4:10:40 AM
James wrote:
[Quoted Text]
> 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
Re: CTP3 debug commands greyed out in powershell ISE?
"James" <no[ at ]email.com> 12/27/2008 4:22:06 AM
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

Re: CTP3 debug commands greyed out in powershell ISE?
Bernd K <guest[ at ]unknown-email.com> 12/27/2008 8:57:19 PM
Hello James, Without any documentation about ISE I tried the following: 1) I loaded a script containing a function into the script pane 2) I set a breakpoint to a line within that function using F9 3) I startetd the script F5 4) In the command pane I entered a call the function providing arguments Debugger stopped at Breakpoint red line became yellow 5) I can step using F10 or f11 or inspect some variables looks good. Bernd -- Bernd K

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen