Is it possible to use VisualStudio 2005 as IDE for developing
standalone VBScripts ? When I enter 'cscript.exe test.vbs //X ' on
command-line I can debug scripts in a new instance of VisualStudio,
but I don't know how to configure project to be able to do editing
and debugging without leaving IDE ( just as in C++ projects for
example ).
Any help ?

Thanks in advance,
Tom

Re: Is it possible to use VisualStudio 2005 as IDE for developing standalone VBScripts ? by Adam

Adam
Mon Jul 30 11:40:58 CDT 2007

On Jul 30, 9:07 am, tom <kamild...@poczta.onet.pl> wrote:
> Is it possible to use VisualStudio 2005 as IDE for developing
> standalone VBScripts ? When I enter 'cscript.exe test.vbs //X ' on
> command-line I can debug scripts in a new instance of VisualStudio,
> but I don't know how to configure project to be able to do editing
> and debugging without leaving IDE ( just as in C++ projects for
> example ).
> Any help ?
>
> Thanks in advance,
> Tom

Never used VS but try out VBSedit. http://www.vbsedit.com/

I has some intellisense, an object browser which is smart enough to
show all the members of the classes which you are using. It also has
a debugger. I haven't used the debugger yet though as that feature
requires registration.


Re: Is it possible to use VisualStudio 2005 as IDE for developing standalone VBScripts ? by LJB

LJB
Tue Jul 31 10:43:40 CDT 2007


"tom" <kamildobk@poczta.onet.pl> wrote in message
news:1185782879.440915.131550@22g2000hsm.googlegroups.com...
> Is it possible to use VisualStudio 2005 as IDE for developing
> standalone VBScripts ? When I enter 'cscript.exe test.vbs //X ' on
> command-line I can debug scripts in a new instance of VisualStudio,
> but I don't know how to configure project to be able to do editing
> and debugging without leaving IDE ( just as in C++ projects for
> example ).
> Any help ?
>
> Thanks in advance,
> Tom
>

I don't know about Visual Studio but I've enjoyed using the VBA editor from
Excel. The VBS from the following link will set it up.

http://groups.google.com/group/microsoft.public.scripting.vbscript/msg/47eae3bddee0f47e



Re: Is it possible to use VisualStudio 2005 as IDE for developing standalone VBScripts ? by J

J
Wed Aug 01 08:25:59 CDT 2007


"tom" <kamildobk@poczta.onet.pl> wrote in message
news:1185782879.440915.131550@22g2000hsm.googlegroups.com...
> Is it possible to use VisualStudio 2005 as IDE for developing
> standalone VBScripts ? When I enter 'cscript.exe test.vbs //X ' on
> command-line I can debug scripts in a new instance of VisualStudio,
> but I don't know how to configure project to be able to do editing
> and debugging without leaving IDE ( just as in C++ projects for
> example ).
> Any help ?
>
> Thanks in advance,
> Tom
>

The following method works in Visual Studio 2003, however I don't have VS
2005 so I don't know if it also works there.

1. Add the .vbs file to a project (VS 2003 has a 'template' for VBScript
files).
2. Right-click the .vbs file and click Open With...
3. Click Add...
4. Enter Program name: WScript.exe /X.
5. Enter Friendly name: anything you want, e.g. wscript debugger.
6. Click OK.
7. Click No to the warning message "File name does not exist, is invalid, or
contains parameters that cannot be validated. Do you want to change your
entry?
8. Click Open.
9. The Visual Studio Just-in-time Debugger opens. Select the Visual Studio
project from the list of possible debuggers
10. Attach to Process window appears. 'Script' is already ticked. Click
OK.
11. Visual Studio automatically breaks on first line of .vbs file.

To debug again, right-click the .vbs file and click Open With, choose the
program name you gave in
step 5 and click Open. Debugging using F5 etc. doesn't work.