简体   繁体   中英

Cannot reload page while Chrome devtools debugger paused in React app

I am debugging a React app made with create-react-app.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM