Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop JavaScript without reloading the page

I have some JavaScript that, I believe, is stuck in an infinite loop. I know I can just reload the page, but I have data in a form on the current page that I'd like to keep. The tab is completely unresponsive, so I can't just copy and paste everything and then reload. So is there any way to kill the javascript thread, but keep the DOM in Chrome?

like image 524
bigblind Avatar asked Mar 10 '23 20:03

bigblind


2 Answers

Open chrome developer tools and go to the sources tab. On the right panel press "pause script execution".

enter image description here

like image 40
Josué Zatarain Avatar answered Mar 16 '23 07:03

Josué Zatarain


You can open the developer console F12 and stop the scriptenter image description here

like image 193
Black Avatar answered Mar 16 '23 07:03

Black