javascript 脚本调试器无法连接到目标进程。Adebugger 已附加
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27127606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
the script debugger failed to connect to the target process. Adebugger is already attached
提问by StackTrace
Windonws 7 64-bit and VS2010
Windonws 7 64 位和 VS2010
In F12developer tools for IE11 on Windonws 7 64-bit and VS2010, when I click the Debugger tool icon or press Ctrl+ 3to open the tool, I'm not able to debug my java-script files.
在F12Windonws 7 64 位和 VS2010 上的 IE11 开发人员工具中,当我单击调试器工具图标或按Ctrl+3打开该工具时,我无法调试我的 java 脚本文件。
When I click the Debugger tool icon, i'm presented with the message in the screenshot above & I can't see the javacsript files my current page calls, so I'm unable to debug my javascript code.
当我单击调试器工具图标时,我会看到上面屏幕截图中的消息,并且我看不到当前页面调用的 javacsript 文件,因此我无法调试我的 javascript 代码。
Any one knows why I could be getting this message? I have tried everything mentioned at the following link with out success. VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed
有谁知道为什么我会收到这条消息?我已经尝试了以下链接中提到的所有内容,但都没有成功。VS2010 和 IE10 将脚本调试器附加到处理 iexplore.exe 失败
回答by RB2
I was encountering this problem with VS 2012 & Win 7 and also VS2013 and Win8.1:
我在 VS 2012 & Win 7 以及 VS2013 和 Win8.1 中遇到了这个问题:
Perplexed for half a day, looking up things online, finally figured it out myself.
纠结了半天,在网上查东西,终于自己弄明白了。
Learn the difference between these in Visual Studio: F5 vs (Ctr+Shift+W)
在 Visual Studio 中了解这些之间的区别:F5 与 (Ctr+Shift+W)
F5 will engage VS debugger and you will get the:
F5 将使用 VS 调试器,您将获得:
"The script debugger failed to connect to the target process. A debugger is already attached"
“脚本调试器无法连接到目标进程。调试器已附加”
when using the F12 Developer Tool in I.E. 11 or whatever version.
在 IE 11 或任何版本中使用 F12 开发人员工具时。
However, if you use the V.S. command: View in Browser(Ctrl+Shift+W) this will run the script and allow I.E's script debugger(F12 Dev Tool) to engage and work.
但是,如果您使用 VS 命令:在浏览器中查看 (Ctrl+Shift+W) 这将运行脚本并允许 IE 的脚本调试器(F12 开发工具)参与和工作。
回答by Gotham Llianen
The easier way for me was:
对我来说更简单的方法是:
- Run project(F5) in Firefox (or any other browser, not IE).
- Copy adress.
- Close Firefox (project will keep running, atleast did in myn).
- Open IE and input address manually (ex: http://localhost:58100/) by pasting what you copied in '2.'.
- IE Debugger should work at this point.
- 在 Firefox(或任何其他浏览器,而不是 IE)中运行项目(F5)。
- 复制地址。
- 关闭 Firefox(项目将继续运行,至少在 myn 中如此)。
- 打开 IE 并通过粘贴您在“2.”中复制的内容手动输入地址(例如:http://localhost:58100/)。
- 此时 IE 调试器应该可以工作。
回答by Saman Qaydi
You should use ctrl+F5 instead of F5 so your application runs without debugging
您应该使用 ctrl+F5 而不是 F5 以便您的应用程序无需调试即可运行
回答by Ashish
I see this post is referred to Windonws 7 64-bit and VS2010, but I am using Windows 10 32 bit and VS Professional 2012 along with IE 11. I got the same message as shown in screenshot:
我看到这篇文章被称为 Windonws 7 64 位和 VS2010,但我使用的是 Windows 10 32 位和 VS Professional 2012 以及 IE 11。我得到了与屏幕截图中显示的相同的消息:
How I resolved this problem(after starting Debugging):
我是如何解决这个问题的(开始调试后):
- went to debug tab in VS
- then windows
- select processes
- 转到 VS 中的调试选项卡
- 然后是窗户
- 选择进程
There you will see two processes attached one will be "IIS" and second will be "IE.exe" with description "script". Detach the second one and then hit F12in IE where your code is running.
在那里你会看到两个附加的进程,一个是“IIS”,第二个是“IE.exe”,描述为“脚本”。分离第二个,然后在运行代码的 IE 中按F12。
回答by NidhinSPradeep
When I did iisreset
from command prompt, I could resolve this issue.
当我iisreset
从命令提示符执行时,我可以解决这个问题。
Open CMD in admin mode -> type IISRESET
-> enter
在管理员模式下打开 CMD -> 类型IISRESET
-> 输入