Skip to content
Advertisement

How to debug only one js file

I have lot of my JS files in my projects. Some of them are external libraries. I want to know what JS code is executing for current user interaction. I have set up break point in chrome as describe here. But there are already lots of JS files and lots are added by Visual Studio of his own. So it becomes difficult for me to get to exact code. So in this case, I need something that will enable me to debug only xyz.js file.

Advertisement

Answer

Open up settings in chrome dev tools, click on “Blackboxing” or possibly “Manage framework blackboxing” and set up file names or regex patterns. Any scripts matching this will not be debugged when you are stepping through your own code and reach a point at which you would enter that script.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement