Firebug: console.trace 没有输出
Firebug: console.trace gives no output
我无法让 Firebug 的 console.trace()
给出任何输出。我用错了吗?
我在 Ubuntu 14.04 上使用 Firefox 41.0.1 和 Firebug 2.0.12。它在 Windows 7.
上的 Firefox 41.0.1 中运行良好
我已将 a test file 上传到 neocities,您可以试用一下。这是测试文件的内容:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
function myFun1 (p1) {
var res = myFun2("there");
return res;
}
function myFun2 (p2) {
console.trace();
return "hi there"
}
console.log("start");
var res = myFun1("hi");
console.log("res: ", res);
console.log("end");
</script>
</body>
</html>
根据 thread in the Firebug discussion group this is a bug in Firebug 2.0.12, which was reported as issue #7948 并在 Firebug 2.0.13.
中修复
我无法让 Firebug 的 console.trace()
给出任何输出。我用错了吗?
我在 Ubuntu 14.04 上使用 Firefox 41.0.1 和 Firebug 2.0.12。它在 Windows 7.
我已将 a test file 上传到 neocities,您可以试用一下。这是测试文件的内容:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
function myFun1 (p1) {
var res = myFun2("there");
return res;
}
function myFun2 (p2) {
console.trace();
return "hi there"
}
console.log("start");
var res = myFun1("hi");
console.log("res: ", res);
console.log("end");
</script>
</body>
</html>
根据 thread in the Firebug discussion group this is a bug in Firebug 2.0.12, which was reported as issue #7948 并在 Firebug 2.0.13.
中修复