Visual Studio 2017 调试 vbscript [英] Visual Studio 2017 debugging vbscript

查看:69
本文介绍了Visual Studio 2017 调试 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.vbscscript.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

  1. 启动 Visual Studio.
  2. 文件 -> 打开项目.
  3. 将其指向C:Windowssystem32cscript.exe"(或 Windows 安装目录所在的任何位置).
  4. 当您看到提升权限对话框时,点击忽略".
  5. 转到 cscript.exe 节点上的项目属性.
  6. 在参数中添加//d".
  7. 在调试器类型"中将其更改为脚本.
  8. 关闭项目属性.
  9. F10.

这篇关于Visual Studio 2017 调试 vbscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆