What Was I Thinking?

Follies & Foils of .NET Development

  Home  |   Contact  |   Syndication    |   Login
  30 Posts | 0 Stories | 78 Comments | 0 Trackbacks

News

Archives

Post Categories

Check These Out

Gurus

This is another one of those "Posted here for MY convenience" tips.

You can use the Visual Studio Debugger to debug a .vbs (vbscript) file executed with cScript.exe by using the //X flag at the command line.  

 

To debug MyTest.vbs

cscript.exe MyTest.vbs //X

 

The //X will set a breakpoint and invoke the "select a debugger"  dialog where you can choose Visual Studio and step into your vbs code.  I haven't found a way to directly edit from the debugger however, so I end up having to debug, break execution, fix my bug and restart the vbs script file again to see my changes.

posted on Monday, April 14, 2008 11:26 AM

Feedback

# re: QuickTip: Debugging VBS Files with CScript.exe and Visual Studio 4/19/2008 4:24 PM Nicolao Stoy
Nice tip,thanks.
I wish this would work for ASP Classic, too. But I think I have to wait for VS2008 SP1 to do this.

Nicolai



# re: QuickTip: Debugging VBS Files with CScript.exe and Visual Studio 4/19/2008 4:51 PM Chris
What exactly are you trying to do?

# re: QuickTip: Debugging VBS Files with CScript.exe and Visual Studio 6/2/2008 7:14 PM Urmil
I amfacing same problem, I was very much comfortable with visual studio debugger, then i installed MS script debugger and after uninstalling same i am not getting option to reattach visualstudio debug any hint???

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: