Is there any way to keep the chrome dev tools breakpoints into a single source file? I keep running into this issue every now and then, where I set up a breakpoint and continue to the next function calls, problem is the javascript is sometimes relying heavily on other libraries so I just keep jumping from file to file, and it takes a long time to get back to the original file that I originally wanted to debug. So the ideal scenario would be clicking on "Next Function Call" but only break if it's in the same source file, and skip all other files.
Can this be done?
Is there any way to keep the chrome dev tools breakpoints into a single source file? I keep running into this issue every now and then, where I set up a breakpoint and continue to the next function calls, problem is the javascript is sometimes relying heavily on other libraries so I just keep jumping from file to file, and it takes a long time to get back to the original file that I originally wanted to debug. So the ideal scenario would be clicking on "Next Function Call" but only break if it's in the same source file, and skip all other files.
Can this be done?
Share Improve this question asked Feb 7, 2017 at 16:38 StackOverMySoulStackOverMySoul 2,0371 gold badge15 silver badges21 bronze badges1 Answer
Reset to default 7You can blackbox certain scripts from being accessed in the debugger. They will still run, but the debugger won't step into these files.
You can do this by right-clicking on the file, either in the file tree, or the source code area in an open file, and clicking 'Blackbox script'
Source: Blackbox JavaScript Source Files
You can also blackbox scripts from the Call Stack pane on the Sources panel.
If you have a requirement to skip a certain line or lines in a script, you can use the Never pause here
option from the context menu.
Source: Chrome DevTools: Never Pause Here