here's how you can debug a script in visual studio. from a command prompt enter wscript c:\myscript.vbs //x cscript c:\myscript.js //d
//x will launch the debugger, stopped on the first line. //d will not stop on the first line.