Visual Studio 2013和VB脚本

编程入门 行业动态 更新时间:2024-10-23 14:31:13
本文介绍了Visual Studio 2013和VB脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我想知道Visual Studio 2013是否可以编译和调试VBScript文件? 如果有人知道他们可以让我知道如何。

谢谢你的时间。

解决方案

首先,VBScript是一种解释语言,不需要编译。

但是,你可以调试你的VBScript文件内部VS2013。只需打开您要使用VS2013调试的文件。 在工具/外部工具下,您必须使用一些启动参数注册Windows Script Host(CScript.exe或WScript.exe):

标题:CScript Debug 命令:C:\Windows\System32\cscript.exe 参数:// nologo // X $(ItemPath)初始目录:$(ItemDir)检查使用输出窗口按OK按钮

为了启动调试器,只需单击Tools / CScript Debug。 VS JIT调试器询问您,这是您想要使用的调试器。只需选择您的* .vbs文件,然后单击是。

有时候它有点错误,但它有效。 ; - )

I was wondering if Visual Studio 2013 can compile and debug VBScript files? If anyone knows could they please let me know how.

Thank you for your time.

解决方案

First of all VBScript is an interpreted language and does not need to be compiled.

But yes, you can debug your VBScript file inside VS2013. Just open the file you want to debug with VS2013. Under "Tools / External Tools" you have to register the Windows Script Host (CScript.exe or WScript.exe) with some startup parameters:

Title: CScript Debug Command: C:\Windows\System32\cscript.exe Arguments: //nologo //X $(ItemPath) Initial directory: $(ItemDir) Check "Use Output window" Hit the OK button

In order to start the debugger, just click "Tools / CScript Debug". The VS JIT debugger asks you, wich debugger you want to use. Just select your *.vbs file and click Yes.

Sometimes it is a bit buggy but it works. ;-)

更多推荐

Visual Studio 2013和VB脚本

本文发布于:2023-11-07 06:30:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565774.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   Studio   Visual   VB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!