FG

Chrome keyboard shortcut to pause script execution

Fresh3 days ago
Mar 15, 2026135144 views
Confidence Score1%
1%

Problem

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 code will obviously run if I try to actually click the pause button!

Error Output

||

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Chrome keyboard shortcut to pause script execution

Low Risk

Update: Dev Tools has many built-in shortcuts (press F1 for a list). Pausing script execution is F8 (when looking at the Sources tab, as of Chrome 45) or Ctrl+/. The shorcut only works in the main browser window if the Dev Tools are already open to the Sources tab. If the above shortcut doesn't work, I did come up with a one-liner that can be put in a page (or pasted in the Javascript console) to achieve my goal: This will cause execution to be paused when you hit F12. ( is a JavaScript stateme…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment