在 Visual Studio Express 中调试 VBScript
我在网上读到可以调试 VBScript WSH 文件 Visual Studios 2005 Express(我认为是 Web 版),但每次我尝试 cscript.exe myscript.vbs //X 脚本都会执行。
我已经尝试过 VS Express 2005、2008 和 2010 所有版本。
我还尝试过 Visual Studios Premium 2010,它实际上可以按照我的预期调试脚本,但是我希望能够使用免费工具调试脚本(我不想为我团队中的所有其他人获得 VS 2010 许可证) 。
我了解 Microsoft 脚本调试器,但它不能让您像 Visual studios 那样发现对象。
I have read around 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果将 vbscript 插入 wsf 文件中,您可以使用
处理指令,该指令将生成一个对话框,让您可以从一个选项中选择一个调试引擎列表应包括您已安装的所有 VS 版本,以及脚本调试器和 Office 附带的调试器
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