devtools-docs
devtools-docs copied to clipboard
Break on first statement
Breaks at the beginning of any script file or script tag as its being executed.
cc @pbakaus
Are you trying to break the space-time-continuum?
@paulirish when would you use this? To watch the order in which files are loaded?
You'd use this feature when loading scripts dynamically. Let's say the filename is cachebusted on every reload, so your breakpoints will never survive a reload. Here you can always break on new scripts, giving you a chance to add breakpoints in the rest of the file.