简体   繁体   English

Javascript-调试时忽略第三方库吗?

[英]Javascript - Ignore 3rd party libraries when debugging?

Is there anyway to ignore 3rd party javascript when debugging? 调试时是否有任何地方可以忽略第三方JavaScript?

I use lots of 3rd party libraries in my javascript code, and would like to completely ignore them when debugging. 我在JavaScript代码中使用了很多第三方库,并且在调试时想完全忽略它们。 Why? 为什么? Because I'd prefer to assume that they work as intended, and stepping into their code (or having to navigate the call stack for their functions) isn't necessary 99% of the time - most of the time the code I want to debug is my own code - not theirs! 因为我更愿意假设它们按预期工作,因此不必在99%的时间里进入它们的代码(或必须导航其功能的调用堆栈),在大多数情况下,我想调试的代码是我自己的代码-不是他们的!

I specifically am using Chrome most of the time when debugging, but am totally willing to switch to something else if this capability was available! 在调试时,我大多数时候特别使用Chrome,但如果有此功能,我完全愿意切换到其他方式!

@machineghost的评论使在StackOverflow上得到了这个答案 ,其中详细介绍了如何在Chrome中执行此操作:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM