canuckconsulting
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!
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!
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 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.
ASKER
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?
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
~bp
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
billprew: Thanks for the list...suspect I'll be making a purchase if vs 2010 does not better support it.
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.