Discussion:
Editing and debugging VBScript
(too old to reply)
Randy Galliano
2006-10-28 04:42:47 UTC
Permalink
Hello,

I am trying to get some answers for work related to using VBscript Windows
scripting. I am asking for VBSedit at work. People are saying you don't
need a special editor, just create and debug the vbscript using Visual
Studio, or notepad. Notepad doesn't have intellisense capability, and it
doesn't have an integrated debugger. Unfortunately, I can't seem to find a
way to get Visual Studio to interface with cscript.exe or wscript.exe. When
I insert a VBscript into Visual Studio, I get several errors about Dim
statements not being correct, etc.. Could somebody please verify if
vbscript can be:

1. Edited
2. Debugged
3. Ran

in Visual Studio?

Regards,

Randy Galliano
mayayana
2006-10-28 15:04:22 UTC
Permalink
As far as I know, no editor has an
"integrated" runtime debugger, only integrated
buttons or functions to run the MS script
debugger. I haven't used the script debugger.
(Personally I don't see the point, since the
WSH tells you the line and error anyway.)
But it's easy enough to do it. Just install
the MS script debugger and then run your
script with the command-line switch:

WScriptPath //X FilePath

(That's supposed to be
"WScript-space-slash-slash-X-space-FilePath"
My Outlook Express wants to add "file:"
before the slashes, so yours might, too.)
Post by Randy Galliano
I am trying to get some answers for work related to using VBscript Windows
scripting. I am asking for VBSedit at work. People are saying you don't
need a special editor, just create and debug the vbscript using Visual
Studio, or notepad. Notepad doesn't have intellisense capability, and it
doesn't have an integrated debugger. Unfortunately, I can't seem to find a
way to get Visual Studio to interface with cscript.exe or wscript.exe.
When
Post by Randy Galliano
I insert a VBscript into Visual Studio, I get several errors about Dim
statements not being correct, etc.. Could somebody please verify if
1. Edited
2. Debugged
3. Ran
in Visual Studio?
Regards,
Randy Galliano
Randy Galliano
2006-10-30 13:30:17 UTC
Permalink
Thank you for your comments.

The point is that the integrated debugger in Visual Studio lets you point to
a variable and display values. The debugger is not exactly what I am most
interested in. The capability of having objects pull up methods, and
attributes is very important. I still need to know if Visual Studio is a
development tool for Windows Scripting.

Regards,

Randy Galliano.
Post by mayayana
As far as I know, no editor has an
"integrated" runtime debugger, only integrated
buttons or functions to run the MS script
debugger. I haven't used the script debugger.
(Personally I don't see the point, since the
WSH tells you the line and error anyway.)
But it's easy enough to do it. Just install
the MS script debugger and then run your
WScriptPath //X FilePath
(That's supposed to be
"WScript-space-slash-slash-X-space-FilePath"
My Outlook Express wants to add "file:"
before the slashes, so yours might, too.)
Post by Randy Galliano
I am trying to get some answers for work related to using VBscript Windows
scripting. I am asking for VBSedit at work. People are saying you don't
need a special editor, just create and debug the vbscript using Visual
Studio, or notepad. Notepad doesn't have intellisense capability, and it
doesn't have an integrated debugger. Unfortunately, I can't seem to find
a
Post by Randy Galliano
way to get Visual Studio to interface with cscript.exe or wscript.exe.
When
Post by Randy Galliano
I insert a VBscript into Visual Studio, I get several errors about Dim
statements not being correct, etc.. Could somebody please verify if
1. Edited
2. Debugged
3. Ran
in Visual Studio?
Regards,
Randy Galliano
mayayana
2006-10-30 14:13:31 UTC
Permalink
Post by Randy Galliano
The point is that the integrated debugger in Visual Studio lets you point to
a variable and display values. The debugger is not exactly what I am most
interested in. The capability of having objects pull up methods, and
attributes is very important. I still need to know if Visual Studio is a
development tool for Windows Scripting.
Interesting question. I seem to remember that
there was a way to do that in the regular Visual
Studio, but I'm unable to find a reference online now,
and since you didn't make a distinction I'm guessing
that you mean VS.Net rather than VS6.
Someone else may provide a better answer, but
just in case, this might help:

http://pietschsoft.com/Blog/Post.aspx?PostID=757

(I got curious and started searching. From what
I've found it looks like VB.Net doesn't really do
VBS but can be tricked into thinking it's ASP.)
TDM
2006-11-01 16:00:58 UTC
Permalink
Post by Randy Galliano
The point is that the integrated debugger in Visual Studio lets you point
to a variable and display values. The debugger is not exactly what I am
most interested in. The capability of having objects pull up methods, and
attributes is very important. I still need to know if Visual Studio is a
development tool for Windows Scripting.
Regards,
Randy Galliano.
You may want to have a look here :

http://support.microsoft.com/kb/q249024/

I must admit, I have tried this on 2 different systems and
never got it to work.

You may also want to have a look here as well :
Watch for line wrap.

http://groups.google.com/group/microsoft.public.scripting.wsh/browse_thread/thread/c5074bc25380792d/18b59f774ccb19fd?lnk=st&q=vbscript+visual+studio+registry&rnum=2&hl=en#18b59f774ccb19fd


TDM
OfficeGuyGoesWild
2006-11-05 23:51:25 UTC
Permalink
I would check out Admin Script Editor if I were you:

http://tinyurl.com/v6v84

It has a lot of features that make scripting easier in VbScript, Kix
and others. I also use Notepad++ which has at least line numbering :)

..Marty
www.TheScriptLibrary.com
Post by TDM
Post by Randy Galliano
The point is that the integrated debugger in Visual Studio lets you point
to a variable and display values. The debugger is not exactly what I am
most interested in. The capability of having objects pull up methods, and
attributes is very important. I still need to know if Visual Studio is a
development tool for Windows Scripting.
Regards,
Randy Galliano.
http://support.microsoft.com/kb/q249024/
I must admit, I have tried this on 2 different systems and
never got it to work.
Watch for line wrap.
http://groups.google.com/group/microsoft.public.scripting.wsh/browse_thread/thread/c5074bc25380792d/18b59f774ccb19fd?lnk=st&q=vbscript+visual+studio+registry&rnum=2&hl=en#18b59f774ccb19fd
TDM
j***@zeusedit.com
2006-11-06 02:51:44 UTC
Permalink
People are saying you don't need a special editor, just create
and debug the vbscript using Visual Studio, or notepad.
For a programmers's editor with a bit more power than Notepad I
suggest taking a look at Zeus:

http://www.zeusedit.com/features.html
Note: Zeus is shareware (45 day trial).

Jussi Jumppanen
Author: Zeus for Windows
Heinrich Woick
2006-11-12 15:52:09 UTC
Permalink
Post by Randy Galliano
need a special editor, just create and debug the vbscript using Visual
Studio, or notepad. Notepad doesn't have intellisense capability, and it
As a compromise, you might have a look at "http://www.pspad.com/", a
multi-language editor that does not really debug but provides various
other help and is also useful for editing other text and commandline stuff.

Heinrich Woick

Continue reading on narkive:
Loading...