Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - set-psdebug -trace 0

Reply
 
Old 05-29-2006   #1 (permalink)
/\\/\\o\\/\\/


 
 

set-psdebug -trace 0

User Guide :

The set-psdebug -trace 0 command disables any tracing and stepping.

still (after set-psdebug -trace 2 ) :

MowPS>Set-PSDebug -trace 0
DEBUG: 1+ Set-PSDebug -trace 0
MowPS>2145806576 -2145462512
DEBUG: 1+ 2145806576 -2145462512
344064

MowPS>Set-PSDebug -off
DEBUG: 1+ Set-PSDebug -off
MowPS>2145806576 -2145462512
344064
MowPS>2145806576 -2145462512

MowPS>set-psdebug -?

....
....
PARAMETERS
-Trace <System.Int32>
This parameter sets the trace level as follows:
0 - turn script tracing off
1 - trace script lines as they are executed
2 - as well as script lines, also trace variable assignments,
function calls and scripts.
....
....

I think this is correct but confusing

if I use -trace 1 I can turn it of by -trace 0
but if I use -trace 2 I need -Off to turn it of.

hmm but then again, nope also not right :

MowPS>set-psdebug -Trace 1
MowPS>2145806576 -2145462512
DEBUG: 1+ 2145806576 -2145462512
344064
MowPS>Set-PSDebug -trace 0
DEBUG: 1+ Set-PSDebug -trace 0
MowPS>2145806576 -2145462512
DEBUG: 1+ 2145806576 -2145462512
344064

gr /\/\o\/\/

My System SpecsSystem Spec
Old 05-31-2006   #2 (permalink)
James Truher [MSFT]


 
 

Re: set-psdebug -trace 0

this is a bug (which we're fixing)

jim

--
James W. Truher [MSFT]
Windows PowerShell Program Management
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"/\/\o\/\/" <no@spam.mow> wrote in message
news:O0RbkJ1gGHA.4712@TK2MSFTNGP05.phx.gbl...
> User Guide :
>
> The set-psdebug -trace 0 command disables any tracing and stepping.
>
> still (after set-psdebug -trace 2 ) :
>
> MowPS>Set-PSDebug -trace 0
> DEBUG: 1+ Set-PSDebug -trace 0
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
>
> MowPS>Set-PSDebug -off
> DEBUG: 1+ Set-PSDebug -off
> MowPS>2145806576 -2145462512
> 344064
> MowPS>2145806576 -2145462512
>
> MowPS>set-psdebug -?
>
> ...
> ...
> PARAMETERS
> -Trace <System.Int32>
> This parameter sets the trace level as follows:
> 0 - turn script tracing off
> 1 - trace script lines as they are executed
> 2 - as well as script lines, also trace variable assignments,
> function calls and scripts.
> ...
> ...
>
> I think this is correct but confusing
>
> if I use -trace 1 I can turn it of by -trace 0
> but if I use -trace 2 I need -Off to turn it of.
>
> hmm but then again, nope also not right :
>
> MowPS>set-psdebug -Trace 1
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
> MowPS>Set-PSDebug -trace 0
> DEBUG: 1+ Set-PSDebug -trace 0
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
>
> gr /\/\o\/\/



My System SpecsSystem Spec
Old 05-31-2006   #3 (permalink)
Bruce Payette [MSFT]


 
 

Re: set-psdebug -trace 0

It's a known bug has been fixed.

-bruce

--
Bruce Payette [MSFT]
Windows PowerShell Technical Lead
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.



"/\/\o\/\/" <no@spam.mow> wrote in message
news:O0RbkJ1gGHA.4712@TK2MSFTNGP05.phx.gbl...
> User Guide :
>
> The set-psdebug -trace 0 command disables any tracing and stepping.
>
> still (after set-psdebug -trace 2 ) :
>
> MowPS>Set-PSDebug -trace 0
> DEBUG: 1+ Set-PSDebug -trace 0
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
>
> MowPS>Set-PSDebug -off
> DEBUG: 1+ Set-PSDebug -off
> MowPS>2145806576 -2145462512
> 344064
> MowPS>2145806576 -2145462512
>
> MowPS>set-psdebug -?
>
> ...
> ...
> PARAMETERS
> -Trace <System.Int32>
> This parameter sets the trace level as follows:
> 0 - turn script tracing off
> 1 - trace script lines as they are executed
> 2 - as well as script lines, also trace variable assignments,
> function calls and scripts.
> ...
> ...
>
> I think this is correct but confusing
>
> if I use -trace 1 I can turn it of by -trace 0
> but if I use -trace 2 I need -Off to turn it of.
>
> hmm but then again, nope also not right :
>
> MowPS>set-psdebug -Trace 1
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
> MowPS>Set-PSDebug -trace 0
> DEBUG: 1+ Set-PSDebug -trace 0
> MowPS>2145806576 -2145462512
> DEBUG: 1+ 2145806576 -2145462512
> 344064
>
> gr /\/\o\/\/



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Disable trace.axd? .NET General
RE: How to trace what's Crystal Reports is doing? .NET General
Vista RAS/DUN Error 31 Trace - Who will look at it? Vista networking & sharing
set-psdebug -strict PowerShell
Set-PSDebug -Step behavior PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46