在Windows 10中调试VBScript [英] Debugging VBScript in Windows 10

查看:311
本文介绍了在Windows 10中调试VBScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近把免费的Windows 10,升级到了Pro,并安装了Office 2016 Home。我似乎已经丢失了所有的调试器。



我以前能够输入:

 %windir%\SysWOW64\cscript.exeTestScript.vbs// d // x 

在Windows 7和更高版本将弹出调试器。这似乎都被删除了 - 即使是调试器clsid也没有。



我不想安装Visual Studio - 没有办法获得极简调试器回来?

解决方案

我在Windows 7 HB上安装了MS Office 2010后遇到了同样的问题。仅Office 2000中包含的



取消选中所有应用程序,然后选中选择高级自定义





禁用所有组件:





转到 Office工具 - HTML源代码编辑 - Web脚本并选择从我的电脑运行选项 Web调试项目:





然后完成休息安装过程。之后,您可以使用脚本编辑器调试器调试脚本。



在Office 2003和2007安装程序中,我检查了相同版本的脚本编辑器:





我应该说我没有测试过Windiws 10,似乎Office 2003与Windows 10不兼容,但可能使用兼容模式,Office 2007已被确认为兼容。



BTW,如果您使用记事本++,可能是方便地设置使用调试器启动脚本的快捷方式。输入C:\WINDOWS\SysWOW64\cscript.exe// x$(FULL_CURRENT_PATH) into 要运行的程序字段,同时创建快捷方式(您可以在此处找到描述)。


I recently took the free Windows 10, upgraded it to Pro, and installed Office 2016 Home. I seem to have lost all my debuggers.

I used to be able to type:

"%windir%\SysWOW64\cscript.exe" "TestScript.vbs" //d //x

in Windows 7 and up would pop the debugger. It all seems to have been removed -- even the debugger clsid is missing.

I don't want to install Visual Studio -- is there no way to get the minimalist debugger back?

解决方案

I encountered the same issue after I'd installed MS Office 2010 on Windows 7 HB. MS Script Editor included in Office 2000 through 2007 only. So to make debug possible you still can install it from any of that packages. The example below is for Office 2003 installer on Windows 7:

Launch the installer, choose custom type of installation:

Uncheck all applications and check choose advanced customization:

Disable all components:

Go to Office Tools - HTML Source editing - Web Scripting and select Run from My Computer option for Web Debugging item:

Then finish the rest installation process. After that you can debug the scripts with Script Editor debugger.

There is the same version of Script Editor in Office 2003 and 2007 installers that I checked:

I should say I havn't tested that on Windiws 10, seems Office 2003 is not certified compatible with Windows 10 but might work using compatibility mode, and Office 2007 have been confirmed to be compatible.

BTW, if you are using Notepad++, it may be handy to setup shortcut for launching the script with debugger. Enter "C:\WINDOWS\SysWOW64\cscript.exe" //x "$(FULL_CURRENT_PATH)" into The Program to Run field while creating shortcut (you can find description here).

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

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