How to disable JavaScript in Chrome Developer Tools?
Solution 1:
Click the gear icon in the corner of the Developer Tools, click Settings
, then under Debugger
, check Disable Javascript
, as shown in the following video:
Solution 2:
Update August 2020
- Developer Tools (F12)
- Click the Gear icon
- Should open the Preference tab
- Disable Javascript option is on the far right
Original answer
- Developer Tools (F12)
- Three vertical dots in upper right
- Settings
- Under the "Preferences" tab on the left
- There will be a "Debugger" section with the option (probably on far right)
Solution 3:
Official documentation: Disable JavaScript With Chrome DevTools
There's now a command menu built into DevTools that makes it easier to disable JavaScript. This has been around as of April 2016 or so.
- Open DevTools.
- Press Command+Shift+P (Mac) or Control+Shift+P (Windows, Linux) to open the Command Menu. Make sure that your cursor's focus is on the DevTools window, not your browser viewport.
- Type
Disable JavaScript
(or some version of that... it's a fuzzy search) and then press Enter.
Use the Enable JavaScript
command when you want to turn it back on.