devtools-docs icon indicating copy to clipboard operation
devtools-docs copied to clipboard

Break on first statement

Open paulirish opened this issue 10 years ago • 3 comments

image

Breaks at the beginning of any script file or script tag as its being executed.

cc @pbakaus

paulirish avatar Feb 20 '15 21:02 paulirish

Are you trying to break the space-time-continuum?

Garbee avatar Feb 20 '15 21:02 Garbee

@paulirish when would you use this? To watch the order in which files are loaded?

kaycebasques avatar Aug 11 '15 22:08 kaycebasques

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.

paulirish avatar Aug 15 '15 19:08 paulirish