Can't inspect scope variable when using strict mode

我只是一个虾纸丫 提交于 2019-12-05 00:59:28

This appears to be a known issue with Safari: https://bugs.webkit.org/show_bug.cgi?id=65829

To reproduce the Error, you simply need to type any code into the console while stopped at a breakpoint and while in strict mode.

Here's the code from the bug report:

(function(){
    "use strict";
    debugger;
})();

So when you're at the breakpoint, go to the console and type 2+3 (or any expression), and you'll get the Error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!