我无法让 Firebug 的 console.trace()
给出任何输出。难道是我用错了?
我在 Ubuntu 14.04 上使用 Firefox 41.0.1 和 Firebug 2.0.12。它在 Windows 7 上的 Firefox 41.0.1 中运行良好。
我已上传a test file到新城市,这样你就可以尝试一下。这是测试文件的内容:
<!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这是 Firebug 2.0.12 中的一个错误,报告为 issue #7948并在 Firebug 2.0.13 中修复。
关于javascript - Firebug:console.trace 没有输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33104221/