English 中文(简体)
启用在视觉工作室 11 中使用铬的脚本调试功能
原标题:enable script debugging using Chrome in Visual Studio 11

我有一个MVC 4网络应用程序 与一些刺绣 正在工作与互联网探索者 并给出一个问题 与Chrome。

I was thinking to debug using Chrome as a browser in Visual Studio 11, which can be selected from the debug dropdown: the issue is that I cannot figure out how to enable script debugging : when I debug the breakpoint are disabled with the usual warning

没有为此文档装入任何符号

我知道我可能会直接在铬调试脚本, 但我更喜欢使用视觉工作室来保持一致, 因为这涉及到进入几个 lengty js 图书馆。

我从上一个上可以看到 站点上2008视觉工作室不可能:有人知道如何用视觉工作室11来做到这一点吗?

PS: 附加铬进程没有帮助, 因为调试模式是本地模式而不是脚本

PSII: 我还试图使用 < code> Attach 将铬附加到附件 : 脚本代码 选项 。 菜单( 此选项将调试模式切换为 < em> Script ), 但这也无济于事 。

问题回答

你不能这样做。视觉工作室只有这样才能与 IE 连接。


当然,铬确实有它自己的调试工具 你可以使用, 但你将无法 得到你的停留内 视觉工作室 内,你可能会希望。


网络上和SO上都有大量答/答/答/答错误的问题。

以下是2015年视觉工作室为我工作的步骤(亦应采用更早版本):

Start chrome in remote debug mode: chrome.exe --remote-debugging-port=9222 Attach Visual Studio: "Debug" -> "Attach to Process..." -> select the chrome instance

所有信用都归于:http://lostindetails.com/blog/post/JavaScript-debugging-in-VisualStudio- with-Chrome





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签