JavaScript 断点在 Visual Studio 2008 中不再起作用?

发布于 2024-11-16 16:10:22 字数 682 浏览 4 评论 0原文

我的 Visual Studio JavaScript 断点不再起作用。他们现在不这样做了。我已经尝试了网上能找到的一切。 javascript 语句调试器在 FF 中也不起作用(不,它不在函数的第一行)调试器在 IE 中可以工作,但我需要针对 FF 问题进行调试。 Firebug,恕我直言,这很糟糕 - 只要看看你必须浏览的观察列表即可。我需要立即窗口来检查变量等。我在最新的FF、Chrome和IE都试过了。但 VS2008 不会破坏 Javascript 的任何地方。

一切都启用了调试,我尝试附加到浏览器,删除临时文件,清除缓存,等等,等等,等等。除了 12 号霰弹枪之外,什么都试过了(我把我的炮弹留给下一个遇到的微软员工)。我最后尝试的是修复VS。不,没用。我尝试了完整的 VS 卸载、regclean、碎片整理,然后重新安装了 VS2008 和 SP1。重新安装后,我尝试了一个带有 1 个按钮和一个 3 行功能的空白页面,如下所示。

function TestIt() {
  var x = 0;
  debugger;
  alert("In Test function");
}

将断点放在 var x = 0; 行上。不,没用。

微软没有任何答案,他们表现得好像这是他们第一次听说这个问题。看来这个问题从vs2003就已经存在了,而且人们在vs2010中仍然有这个问题。有想法吗?

My Visual Studio JavaScript breakpoints are no longer working. They don't now. I have tried everything that I could find on the web. the javascript statement debugger dosn't work in FF either (and no, it's not on the first line of the function) debugger does work in IE but I need debug for FF issues. Firebug, IMHO sucks - just look at that watch list you have to wade through. I need the immediate window to check vars ect. I have tried in the latest FF, Chrome and IE. But VS2008 just won't break anywhere in Javascript.

Debugging is enabled everywhere on everything, I have tried attaching to the browsers, deleting temp files, clearing caches, ect, ect, ect, ect, ect. Tried every thing short of a 12 gauge shotgun (I'm saving my shells for the next microsoft employee I come across). The last thing I tried is a repair of VS. Nope, didn't work. I tried a complete VS uninstall, regclean, defrag while I was at it and then a reinstall of VS2008 and SP1. After the reinstall I tried a blank page with 1 button and one 3 line function shown below.

function TestIt() {
  var x = 0;
  debugger;
  alert("In Test function");
}

put the breakpoint on the var x = 0; line. Nope, didn't work.

Microsoft doesn't have any answers, they act like it's the first that they have heard of it. Seems that this issue has been around since vs2003 and people still have this problem in vs2010. Ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拒绝两难 2024-11-23 16:10:22

我厌倦了不稳定的 javascript 调试器,并开始大量使用日志记录。

I got tired of iffy javascript debuggers and have been heavily using logging instead.

飞烟轻若梦 2024-11-23 16:10:22

你试过 Chrome 的调试器吗?我早就放弃了 Firebug,转而使用 Chrome。

Have you tried Chrome's debugger? I've long since abandoned Firebug in favor of Chrome.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文