Shortcut to add multiple breakpoints in chrome?

As with the case, I have 100 lines of code, and I want a breakpoint on every single line. Is there something like clicking the first line, scrolling down to the 100th line and using the shift click or click on the button to select all the lines between apply a breakpoint?

+4
source share
1 answer

In chrome, you can try using the debug keyword.

 function debug(fn) { [Command Line API] } 

For example, paste this code into the Chrome Developer Console:

 function hw() { alert('hello world'); } debug (hw); hw(); 

It will create a virtual file and start at the breakpoint in your function.

0
source

Source: https://habr.com/ru/post/1443627/


All Articles