Noa*_*rec 88 javascript-debugger reactjs
在使用 create-react-app 进行开发时,我的浏览器在出现警告时进入调试器模式:
它打破了 react-dev-tools 的源代码:
// --- Welcome to debugging with React DevTools ---
// This debugger statement means that you've enabled the "break on warnings" feature.
// Use the browser's Call Stack panel to step out of this override function-
// to where the original warning or error was logged.
Run Code Online (Sandbox Code Playgroud)
如何停用此行为?
Nar*_*mar 82
转到 Chrome 开发者工具?在 Chrome 控制台中,转到Component ? 点击设置?取消设置中断警告。在Profiler 中做同样的事情吗?设置?取消设置中断警告。
@cadoman 指出检查,然后取消选中以确保工作。
PS:图片来自https://github.com/facebook/react/issues/19308#issuecomment-656669792
小智 16
基于拉取请求DevTools: Make break-on-warn off by default #19309这似乎是一个错误。
Break On Warnings 框对我来说是未选中的,它仍然会中断。删除并阅读扩展以强制更新为我修复了它。
我不知道还有什么方法可以强制 Chrome 在其常规计划之外更新扩展程序。
小智 5
转到“调试”选项卡中的 ReactDev 工具并禁用“警告时中断”。
我认为这种新行为是从今天这个新 PR 开始的:https ://github.com/facebook/react/pull/19048
| 归档时间: |
|
| 查看次数: |
8983 次 |
| 最近记录: |