51
19
Is there a keyboard shortcut in Google Chrome which will break script execution? (Equivalent to pressing the ||
"Pause script execution" button in the Developer Tools Scripts panel.)
I'd like to use the Dev Tools to inspect an element in its mouseover state; the mouseleave
code will obviously run if I try to actually click the pause button!
7F8 only works when you are on the "Sources" page in DevTools (Chrome 40) – netvope – 2015-01-26T03:20:04.617
1Does CTRL + / work under Linux or something? Because CTRL + \ appears to work under Windows, and according to others it would be CMD + \ for MAC. – djabraham – 2017-09-15T19:11:22.373
1The same effect but without requiring jQuery:
window.addEventListener('keydown', e => { if (e.keyCode === 123) debugger })
– pau.moreno – 2018-05-22T15:30:13.080sometimes event hotkeys closes the element you want to inspect,
setTimeout(function() { debugger; }, 1000)
helps here – cyptus – 2018-06-25T09:04:17.317