Visual Studio 2017 调试 vbscript [英] Visual Studio 2017 debugging vbscript
问题描述
我想使用 Visual Studio 2017 Community Edition 调试 vbscript,并按照此处提到的 VS2015 步骤进行操作:
I'd like to debug a vbscript with Visual Studio 2017 Community Edition and followed the steps mentioned here for VS2015:
我进入了
cscript.exe /x foo.vbs
在命令行中,但没有启动调试器.VS 2017 版本是否有问题,或者视频中未显示某些步骤(例如 VS 中的配置步骤)?
in the commandline, but no debugger starts. Is there a problem with the 2017th version of VS or are there some steps (e.g. configuration steps in VS) which are not shown in the video?
我试过 cscript.exe//X foo.vbs
, cscript.exe foo.vbs//X
, cscript.exe//X//D foo.vbs
和 cscript.exe foo.vbs//X//D
也是
I tried cscript.exe //X foo.vbs
, cscript.exe foo.vbs //X
, cscript.exe //X //D foo.vbs
and cscript.exe foo.vbs //X //D
too
谢谢工作人员
推荐答案
这些解决方案都不适合我.在 MSDN一个>
Neither of those solutions worked for me. Found a workaround on MSDN
- 启动 Visual Studio.
- 文件 -> 打开项目.
- 将其指向C:Windowssystem32cscript.exe"(或 Windows 安装目录所在的任何位置).
- 当您看到提升权限对话框时,点击忽略".
- 转到 cscript.exe 节点上的项目属性.
- 在参数中添加//d".
- 在调试器类型"中将其更改为脚本.
- 关闭项目属性.
- 按 F10.
这篇关于Visual Studio 2017 调试 vbscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!