<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>An example</title>
<script type="text/javascript">
function User(id) {
this.id = id;
};
var bob = new User(32);
var jack = new User(bob.id);
jack.id = 100; // Set a breakpoint here, but it does not stop here
alert('end of test' + jack.id);
</script>
</head>
<body>
</body>
</html>
顺便说一句,断点在 chrome 中正常工作。
我一头雾水……这应该是一个很简单的例子。这是 Firefox 的错误吗?
谢谢!
最佳答案
看起来像 Firebug 的 bug 。在最后一条语句之前添加一个新行似乎可以解决问题。
关于javascript - 断点在使用 Firebug(1.11.2) 的 Firefox (19.0) 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15286829/