简体   繁体   English

在 Visual Studio 中调试时如何忽略 jQuery 断点,或者是否可以在 Visual Studio 2019 中黑盒 js 脚本?

[英]How to ignore jQuery breakpoints when debugging in Visual Studio or Is it possible to blackbox js script in Visual Studio 2019?

The same question as Is it possible to blackbox vendor code when using VSCode's node debugger?Is it possible to blackbox vendor code when using VSCode's node debugger?相同的问题but for Visual Studio 2019.但对于 Visual Studio 2019。

Every time I am debugging and I running into jquery.min.js it is taking long time to overcome it, I keep pressings Continue but it stepping there every time for a long time.每次我调试时遇到 jquery.min.js 都需要很长时间才能克服它,我一直按 Continue 但每次都踩到那里很长时间。 How can I blackbox jquery.min.js in Visual Studio 2019?如何在 Visual Studio 2019 中黑盒 jquery.min.js?

黑盒子

Place something like this in your launch configuration (launch.json):在您的启动配置 (launch.json) 中放置类似这样的内容:

"skipFiles": [
    "**/jquery*.min.js"
]

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

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