以下内容转载胡争辉网站上的部份内容
Firebug的Script脚本面板中,在Options选项菜单中,包括BreakOnErrors在全部错误处标记中断选项,打开该选项 时,Firebug将在出现javascript脚本错误时自动中断。该功能不受javascript脚本中的try/catch影响。例如:
<html>在两行出错代码中,Firebug都会中断,既便第一个出错代码有try/catch处理异常。
<head>
<script>
try {
c.d();
} catch (e) {
console.info(e);
}
a.b();
</script>
</head>
</html>
涉及Firebug版本包括1.2.1。