[否加载当前文档&QUOT符号;而在Visual Studio调试JavaScript [英] "No symbols loaded for the current document" while debugging JavaScript in Visual Studio

查看:120
本文介绍了[否加载当前文档&QUOT符号;而在Visual Studio调试JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下一个解决方案工作的一个.NET 3.5的网站,有三个项目。我在这个项目中使用jQuery。我想使用Visual Studio的JavaScript调试器来逐步我的JavaScript code。如果我在任何.js文件中设置断点,我得到一个说:警告:

I'm working on a .NET 3.5 website, with three projects under one solution. I'm using jQuery in this project. I'd like to use the Visual Studio JavaScript debugger to step through my JavaScript code. If I set a breakpoint in any of the .js files I get a warning that says:

断点将目前尚未受到打击。无符号已加载此文件。

The breakpoint will not currently be hit. No symbols have been loaded for this document.

我该如何解决这个问题?我猜,Visual Studio是有一些麻烦,通过一些jQuery的code的解析。我会尝试与扩展的版本替换的jquery.js 的最小化版本,但我不认为这会解决它。

How do I fix this? I'm guessing that Visual Studio is having some trouble parsing through some of the jQuery code. I will try to replace the minimized version of jQuery.js with the expanded version, but I don't think that will fix it.

推荐答案

我是经历在Visual Studio 2008中相同的行为,并花几分钟的时间试图让符号加载最后我用一种变通方法后 - 添加一行与调试器命令在我的JavaScript文件。

I was experiencing the same behavior in Visual Studio 2008, and after spending several minutes trying to get the symbols to load I ended up using a workaround - adding a line with the "debugger;" command in my JavaScript file.

添加后调试; 当你再重新加载脚本在Internet 浏览器它会告诉你打开脚本调试器的新实例,它会停止在你的调试器命令让你从那里调试。

After adding debugger; when you then reload the script in Internet Explorer it'll let you bring up a new instance of the script debugger, and it'll stop on your debugger command let you debug from there.

在这种情况下我已经在调试萤火虫 JavaScript的,但我要针对调试的Internet Explorer以及

In this scenario I was already debugging the JavaScript in Firebug, but I wanted to debug against Internet Explorer as well.

这篇关于[否加载当前文档&QUOT符号;而在Visual Studio调试JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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