Can Visual Studio 2008 be used to debug vbscript files (.vbs)

Hi,

I am looking to write some vbscript login scripts for our XP clients and wanted an environment to be able to quickly write, debug and test them.  I have Visual Studio 2008; will this do the trick?  If not, any suggestions for an alternative ide?

I am developing on a Windows 7 x64 machine but deploying to xp x32 clients.  I have some virtual machines set up for testing but if an environment supported testing on those environments directly that would be a bonus!
canuckconsultingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

felipe_schauenburgCommented:
VS2008 full version can debug VBS. However Microsoft removed it from the Express Edition, so check out correctly which one you're using.
VS2005 full and Express edition work fine also.

If I'm not mistakne, there is also a debugger with windows and one with office that can be run directly from comand line. But I'm not sure whcih is the comand. Maybe someone else can assist on this =].

Regards.
0
canuckconsultingAuthor Commented:
I have Visual Studio 2008 Standard but cannot figure out how to use.it.  If I create new->project or new-File I don't have a vbscript option.  If I open a .vbs file intellisense seems to work but I am not able to click F5 or or initiate debugging.  I would like to simply step throught the code like any other project.  Can this be done?
0
rajvihariCommented:
I dont think that, By VS2008, debug.
But As per say felipe  schauenburg, Microsoft give facility to debug Macro in its application (Like excel, word, access)  like open excel file and press {alt + F11} to open Vs Editor and then press F8 to debug the code/macro.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

canuckconsultingAuthor Commented:
But these are windows scripts I am writing so not  really relevant to a particular app.  Logon scripts etc.  Is there no stand-alone debugger for these?
0
Bill PrewCommented:
Have you played around with the Miscrosoft Script Editor at all?  If you have Office installed, look for mse7.exe under the Office program files tree and run it.  It allows some basic debugging capability against script files.

~bp
0
Bill PrewCommented:
And if you do a lot of script work, and aren't opposed to paying for a higher feature product, you might take a look at these:

http://www.primaltools.com/products/info.asp?p=PrimalScript
http://www.vbsedit.com/
http://www.scriptcode.com/vbscripteditor/

~bp
0
felipe_schauenburgCommented:
VS 2008 can yes debug visual scripts
However it is no so direct as I thought. You'll have to do it per comand lines.

Open a prompt and write

csript.exe Path\MyScrpit.vbs //X

the //X will allow you to choose a debugger. If you have VS2008 it wil offer you the possibility to initiate a new instance with all the debug options like setp in, step ou, step over and so on.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
canuckconsultingAuthor Commented:
felipe_schauenburg: This worked, thanks.  Surprised that the integration is not better.  Hope 2010 improves it.

billprew: Thanks for the list...suspect I'll be making a purchase if vs 2010 does not better support it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.