Open a file in Chrome DevTools
In Chrome DevTools, press Cmd+P (Mac), Ctrl+P (Windows, Linux). Works when: sources panel.
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
See it happen Press the shortcut above, or
More Chrome DevTools shortcuts: sources and debugging
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Go to a function in the file | ShiftCmdO | CtrlShiftO | CtrlShiftO |
| Go to a line | CtrlG | CtrlG | CtrlG |
| Toggle a breakpoint | CmdB | CtrlB | CtrlB |
| Pause or resume the script | F8orCmd\ | F8orCtrl\ | F8orCtrl\ |
| Step over the next call | F10orCmd' | F10orCtrl' | F10orCtrl' |
| Step into the next call | F11orCmd; | F11orCtrl; | F11orCtrl; |
| Step out of the function | ShiftF11orShiftCmd; | ShiftF11orCtrlShift; | ShiftF11orCtrlShift; |
| Run the snippet | CmdEnter | CtrlEnter | CtrlEnter |
| Save changes to the file | CmdS | CtrlS | CtrlS |
| Comment or uncomment the line | Cmd/ | Ctrl/ | Ctrl/ |