How to manually run JS using Chrome dev tool
Daisho Komiyama edited this page Feb 20, 2018
·
1 revision
- Open DevTools, go to the Settings dialog, switch to the Experiments tab.
- Enable the "Snippets support" experiment, close and reopen DevTools.
- Go to the Sources panel. In the left-hand navigator sidebar, switch to the Snippets tab .
- Right-click in the [empty] tree in this tab, select the New context menu item.
- Give the new snippet any name you like and type the snippet body.
- Once done, click the Run (>) button in the status bar to execute the snippet body. You can set breakpoints in snippets and debug them as ordinary scripts.