Open Bug 1191802 Opened 9 years ago Updated 2 years ago

Break on add-on

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(firefox42 affected)

Tracking Status
firefox42 --- affected

People

(Reporter: Yoric, Unassigned)

References

(Blocks 1 open bug)

Details

I'd like to be able to add a breakpoint that's triggered once any code from that add-on is executed. This would help me (and probably add-on developers) find out why some add-on is flagged as slow.
Blocks: dbg-addon
Component: Developer Tools → Developer Tools: Debugger
Can you tell us why chrome debugging does not fulfill this use-case?
Flags: needinfo?(dteller)
I may be missing something, but I don't think there is a way to ask chrome debugging to break on _any_ use of an add-on, is there? Again, that's for add-ons which are somehow triggered by Firefox, but assuming that I don't know the entry point.
Flags: needinfo?(dteller) → needinfo?(mail)
Ah, I understand now, thank you for the clarification. Being familiar with add-ons (and therefore biased) I'm asking myself what the cases are where you have not the slightest clue about where to start debugging.

I don't know about the "slow" flag for add-ons, but we should have docs about what code it triggers, and if not, we should write some :)

Lmk, if this is going too far for this bug and we can continue this somewhere else.
Flags: needinfo?(mail)
Actually, my current example is an add-on that's just ~100 loc, which shouldn't be triggered by Firefox but apparently is. I suspect a bug in or around Jetpack.

As for the "slow" flag for add-ons, I'm the one currently developing it :)
Product: Firefox → DevTools
Type: defect → enhancement
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.