Avoid irrelevant files while debugging in Chrome not working
Asked Answered
M

4

9

While debugging in Chrome I want to avoid jumping through content scripts and libraries, so I enabled ignoring such files in preferences as per documentation but it doesn't seem to work.

I've tried patterns, "ignore content scripts" checkbox, right-click on the file, etc. Weirdly enough it shows all the files I didn't want to go through, with the message that the file is in the ignore list:

enter image description here

How to effectively ignore those?

Manipulate answered 22/11, 2021 at 1:30 Comment(3)
Same question, no answer: #68425345Fairlie
Could you use conditional breakpoints instead? If you know the code your debugging, you should be able to predictably debug code using conditional breakpointsChung
SAME problem here. This is still very much an issue as of Nov 2023. Windows 11 Pro 23H2 Chrome Version 119.0.6045.124 (Official Build) (64-bit) uBlock Origin (subscriber.js) WakaTimje (wakatimeScript.js)Saline
D
1

It's not the ignore function in general that doesn't work right, its the ignore function you can use with right-clicking on the file in the debugger tab AND the automatic ignoring of Content scripts.

It works when you add the file manually in the Ignore List in the Settings of the devtools.

Very annoying indeed and incredible that google is not seeing this.

Duluth answered 29/5 at 8:34 Comment(1)
After all this time and having tested manually the Ignore List, I think you're right. It's broken, but at least I can ignore ^chrome-extension://* and other obvious ones. Thanks.Manipulate
T
0

The checkbox didn't work for me either. So what I did was I let it step into the script I didn't want. Then I right clicked it in the call stack and clicked "add to ignore list".

enter image description here

Touraine answered 2/12, 2021 at 9:58 Comment(1)
This doesn't work for me either :\Manipulate
R
0

Although it should work - and sometimes does - right mouse clicking on the source panel code seems to not work....

![enter image description here

But right mouse clicking on a source URL from the Sources/Page list on the left of the Sources panel DOES seem to work....

enter image description here

Restorative answered 26/2 at 9:31 Comment(0)
L
0

I wanted to comment directly to Neithan Max's question, but that is unfortunately not possible because I have no reputation to speak of.

This behaviour drives me nuts. The chrome debugger keeps reminding me about exceptions in scripts I have chosen to ignore. For example, the Microsoft Editor keeps throwing. But 1) I have ignored the content script and 2) the extension is disabled on localhost. It doesn't make sense to me.

Often I just have to abandon the session and start over.

Lello answered 5/5 at 3:59 Comment(3)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewBlameless
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Leges
@LászlóHunyadi. You are correct. I just wanted to add a comment to the question asked here - adding my personal experiences. In the hope it would be of some help to someone investigating this issue. Because that was not possible, I added a (non) answer instead. Feel free to remove my 'contribution'. I understand I wasn't playing by the rules.Lello

© 2022 - 2024 — McMap. All rights reserved.