[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2127
  • Last Modified:

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!
0
canuckconsulting
Asked:
canuckconsulting
  • 3
  • 2
  • 2
  • +1
2 Solutions
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now