[英]Cannot reload page while Chrome devtools debugger paused in React app
I am debugging a React app made with create-react-app.我正在调试一个使用 create-react-app 制作的 React 应用程序。
Reloading while paused on a breakpoint causes the page to stall.在断点处暂停时重新加载会导致页面停止。 The page goes blank and will not reload;页面变为空白,不会重新加载; the tab can't be immediately closed.该选项卡不能立即关闭。 The dead tab appears to be trying to reload (spinner appears), but never reloads.死标签似乎正在尝试重新加载(出现微调器),但从未重新加载。 I have to open the page in a new tab.我必须在新标签页中打开页面。
I've found that I must allow the debugger to continue past all breakpoints before reloading the page.我发现在重新加载页面之前,我必须允许调试器继续通过所有断点。 Alternative: deactivate all breakpoints, then click resume.替代方案:停用所有断点,然后单击恢复。 This prevents the page from stalling (and then requiring the tab to be killed and reopened).这可以防止页面停止(然后要求关闭并重新打开选项卡)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.