Visual studio 2013 在Visual Studio Express中调试WSH JScript

Visual studio 2013 在Visual Studio Express中调试WSH JScript,visual-studio-2013,jscript,wsh,Visual Studio 2013,Jscript,Wsh,是否可以在Visual Studio Express 2013中调试针对Windows脚本主机(WSH)的JScript 注意:代码使用GetObject方法,出于安全原因,Internet Explorer中不再允许使用该方法。因此IE调试器不是一个选项 我在VS Express for Web中看到了一个用于插入WSH文件(除了JScript文件)的显式模板,但我不知道如何在VS debugger中运行它们 我尝试使用管理员权限进行外部调试: cscript.exe //x //d scr

是否可以在Visual Studio Express 2013中调试针对Windows脚本主机(WSH)的JScript

注意:代码使用
GetObject
方法,出于安全原因,Internet Explorer中不再允许使用该方法。因此IE调试器不是一个选项

我在VS Express for Web中看到了一个用于插入WSH文件(除了JScript文件)的显式模板,但我不知道如何在VS debugger中运行它们

我尝试使用管理员权限进行外部调试:

cscript.exe  //x //d script.js
cscript.exe  //d script.js
cscript.exe  //x script.js
cscript.exe  //x //d script.wsh
cscript.exe  //d script.wsh
cscript.exe  //x script.wsh
为了查看问题是否与我的系统Win7 x64有关,我安装了用于NT的史前Microsoft脚本调试器,并且:

c:\windows\syswow64\cscript.exe  //x //d script.js
c:\windows\syswow64\cscript.exe  //x //d script.wsh

我怎样才能回到现代

您可能无法使用express,但可以使用community edition。您需要对注册表执行此操作

[HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings]
"JITDebug"=dword:00000001
您可能希望将其添加到VisualStudio中的工具/外部工具中,以简化工作。以cscript//x//d开头将提示调试器