Debugging a vbs script (cscript)
Hi all,
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. Afterward it's just a question of stepping through the code (F10, F11). You can also set break points within the script and evaluate variables.