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 > VB Script

Vista - How to debug a vbscript/ show each line BEFORE execution and with var values?

Reply
 
Old 03-24-2009   #1 (permalink)
Tony Bansten


 
 

How to debug a vbscript/ show each line BEFORE execution and with var values?

Is there an easy way to debug a vbscript in such a way that each line of the vbscript
is shown step-by-step just before the actual execution with the resolved variable values?

In the former DOS batch scripts there was a command like

echo on

which does exactly this.

Is there a similar debug-enabling command in VBscript?

I don't want to install a full IDE for tracing and debugging.
Just output at the command line would be sufficient.

Tony


My System SpecsSystem Spec
Old 03-24-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: How to debug a vbscript/ show each line BEFORE execution and with var values?


"Tony Bansten" <tonytony@xxxxxx> wrote in message
news:49c8a867$0$30221$9b4e6d93@xxxxxx-online.net...
Quote:

> Is there an easy way to debug a vbscript in such a way that each line of
> the vbscript
> is shown step-by-step just before the actual execution with the resolved
> variable values?
>
> In the former DOS batch scripts there was a command like
>
> echo on
>
> which does exactly this.
>
> Is there a similar debug-enabling command in VBscript?
>
> I don't want to install a full IDE for tracing and debugging.
> Just output at the command line would be sufficient.
>
> Tony
>
AFAIK there is no such thing. You need to use an IDE or else insert a few
strategically placed wscript.echo "Executing . . ." statement in your code.


My System SpecsSystem Spec
Old 03-24-2009   #3 (permalink)
Armin Zingler


 
 

Re: How to debug a vbscript/ show each line BEFORE execution and with var values?

"Tony Bansten" <tonytony@xxxxxx> schrieb
Quote:

> Is there an easy way to debug a vbscript in such a way that each line of
> the vbscript
> is shown step-by-step just before the actual execution with the resolved
> variable values?

microsoft.public.scripting.vbscript is the better place to ask. This is a
VB".Net" (2002-2008) group.



Armin

My System SpecsSystem Spec
Old 03-24-2009   #4 (permalink)
Pegasus [MVP]


 
 

Re: How to debug a vbscript/ show each line BEFORE execution and with var values?


"Armin Zingler" <az.nospam@xxxxxx> wrote in message
news:uvQ%237OHrJHA.3792@xxxxxx
Quote:

> "Tony Bansten" <tonytony@xxxxxx> schrieb
Quote:

>> Is there an easy way to debug a vbscript in such a way that each line of
>> the vbscript
>> is shown step-by-step just before the actual execution with the resolved
>> variable values?
>
>
> microsoft.public.scripting.vbscript is the better place to ask. This is a
> VB".Net" (2002-2008) group.
>
> Armin
The OP did the right thing - he crossposted his question to
microsoft.public.scripting.vbscript.


My System SpecsSystem Spec
Old 03-24-2009   #5 (permalink)
joecool1969


 
 

Re: How to debug a vbscript/ show each line BEFORE execution and withvar values?

On Mar 24, 5:31*am, tonyt...@xxxxxx (Tony Bansten) wrote:
Quote:

> Is there an easy way to debug a vbscript in such a way that each line of the vbscript
> is shown step-by-step just before the actual execution with the resolved variable values?
>
> In the former DOS batch scripts there was a command like
>
> echo on
>
> which does exactly this.
>
> Is there a similar debug-enabling command in VBscript?
>
> I don't want to install a full IDE for tracing and debugging.
> Just output at the command line would be sufficient.
>
I use the MsgBox function to debug VBScript.
My System SpecsSystem Spec
Old 03-24-2009   #6 (permalink)
MikeB


 
 

Re: How to debug a vbscript/ show each line BEFORE execution and with var values?

If you have any MS Office products, you can use the VBA IDE to debug your
script.


"Tony Bansten" <tonytony@xxxxxx> wrote in message
news:49c8a867$0$30221$9b4e6d93@xxxxxx-online.net...
Quote:

> Is there an easy way to debug a vbscript in such a way that each line of
> the vbscript
> is shown step-by-step just before the actual execution with the resolved
> variable values?
>
> In the former DOS batch scripts there was a command like
>
> echo on
>
> which does exactly this.
>
> Is there a similar debug-enabling command in VBscript?
>
> I don't want to install a full IDE for tracing and debugging.
> Just output at the command line would be sufficient.
>
> Tony
>

My System SpecsSystem Spec
Old 03-24-2009   #7 (permalink)
Cor Ligthert


 
 

RE: How to debug a vbscript/ show each line BEFORE execution and with

Tony,

VB for dotnet and VB script in generally share the same language code (It
are two different dialects).

However, by instance the possibilities to debug are much different, so what
is your question is it about vbscript or about VB Net?

"Tony Bansten" wrote:
Quote:

> Is there an easy way to debug a vbscript in such a way that each line of the vbscript
> is shown step-by-step just before the actual execution with the resolved variable values?
>
> In the former DOS batch scripts there was a command like
>
> echo on
>
> which does exactly this.
>
> Is there a similar debug-enabling command in VBscript?
>
> I don't want to install a full IDE for tracing and debugging.
> Just output at the command line would be sufficient.
>
> Tony
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Fyi: Command line values - admin General Discussion
VBScript Debug VB Script
how to debug vbscript? VB Script
Current Line of Execution in C# PowerShell
VBScript question - low values VB Script


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