简体   繁体   English

Chrome devtools 调试器在 React 应用程序中暂停时无法重新加载页面

[英]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.

相关问题 Chrome Javascript 调试器在暂停时不会重新加载页面 - Chrome Javascript Debugger, when paused, won't reload page chrome 调试器承诺在暂停时无法解决? - chrome debugger promises dont resolve while paused? 重新加载页面更改时的Chrome DevTools Extension侧边栏 - Reload Chrome DevTools Extension Sidebar on Page Change 在恢复调试器时阻止Chrome调试器重新加载页面 - Prevent Chrome Debugger to reload Page when resuming debugger Chrome devtools在页面重新加载时发生DOM突变事件吗? - Chrome devtools DOM mutation events on page-reload? Chrome仅在特定网站上的调试器中暂停 - Chrome paused in Debugger only on specific website Firefox DevTools:选项卡和如何在页面重新加载/刷新后保持调试器文件打开? (停止自动关闭) - Firefox DevTools: Tabs & How to keep debugger files open after page reload/refresh? (Stop auto close) Chrome DevTools:在潜在的内存不足崩溃之前暂停 - Chrome DevTools: paused before potential out-of-memory crash 使用IE(而不是Chrome)重新加载Facebook应用程序的完整页面 - Full page reload of a Facebook app with IE, but not with Chrome 禁用 chrome react DevTools 进行生产 - Disable chrome react DevTools for production
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM