简体   繁体   English

javascript:firebug不允许在certian脚本中设置断点

[英]javascript: firebug not allowing to set breakpoint in certian scripts

I am using firefox+firebug for javascript development. 我正在使用firefox + firebug进行JavaScript开发。 While setting breakpoints in the scripts,for certain files, it allows and for some files, but for certain files it doesn't [which are loaded, and throws alert messages, if I put alert() there]. 在脚本中设置断点时,对于某些文件,它允许使用某些文件,但对于某些文件,则不允许[如果我在其中放置alert(),则某些文件将被加载并引发警报消息]。 If I try to set break point at that line, the red-dot is marked at the last line of the script file, instead of the place where I needed. 如果尝试在该行设置断点,则红点标记在脚本文件的最后一行,而不是我需要的位置。 I am attaching a screenshot of the issue. 我附上该问题的屏幕截图。

萤火虫

Line 56 is where I wanted the breakpoint, but the breakpoint automatically moves/set at line-66, which is at the end of script file 第56行是我想要的断点,但断点会自动移动/设置在第66行,即脚本文件的末尾

You can also add debugger in your JavaScript code.Try this 您也可以在JavaScript代码中添加调试器。

debugger;
this.getEntryCollection();

This is a known bug in previous versions of Firebug 2.0, which should be fixed in the current version (currently 2.0.17). 这是Firebug 2.0以前版本中的一个已知错误,应在当前版本(当前为2.0.17)中修复。

Note that Firebug is going away once multi-process Firefox is released , so it´s recommended to use the browser internal DevTools instead, which don´t have this issue. 请注意, 一旦多进程Firefox发布Firebug将消失 ,因此建议改用浏览器内部的DevTools ,它不会出现此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM