Link to home
Start Free TrialLog in
Avatar of canuckconsulting
canuckconsultingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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!
Avatar of felipe_schauenburg
felipe_schauenburg
Flag of Brazil image

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.
Avatar of canuckconsulting

ASKER

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?
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.
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?
Avatar of Bill Prew
Bill Prew

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
SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.