Debuging VBScript in Visual Studios Express
I have read ar开发者_C百科ound the net that its possible to debug VBScript WSH files Visual Studios 2005 Express (I think Web Edition) but everytime I try cscript.exe myscript.vbs //X the script just executes.
I have tried VS Express 2005, 2008 and 2010 all editions.
I have also tried Visual Studios Premium 2010 which does infact debug scripts as I would expect however I want to be able to debug scripts with free tools (I don't want to get a VS 2010 licence for all the other people on my team).
I know about Microsoft Script Debugger but it doesn't let you discover objects as well as Visual studios does.
if you insert your vbscript into a wsf file, you can use the <?job debug="true" error="true" ?>
processing instruction which will generate a dialog that gives you an option to select a debugging engine from a list which should include all versions of VS you have installed, plus the Script Debugger and the Debugger that comes with Office
精彩评论