最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Chrome dev tools, Keep "Step Over Next Function Call" on a single file - Stack Overflow

programmeradmin3浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 7

You 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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论