Bug 875034 (dbg-blackbox)

[meta] Debugger blackboxing

NEW
Unassigned

Status

()

Firefox
Developer Tools: Debugger
P5
normal
4 years ago
8 days ago

People

(Reporter: rc, Unassigned)

Tracking

(Depends on: 11 bugs)

Firefox Tracking Flags

(Not tracked)

Details

User Story

you want to debug your own code that calls into a library at various points and don't want to step through that alien code. The bug is in your stuff (you hope).
(Reporter)

Description

4 years ago
When debugging, it can be useful to "Step Around" library code. I.e., treat libraries as "Black Boxes" for the purposes of debugging.

Use case:
you want to debug your own code that calls into a library at various points and don't want to step through that alien code. The bug is in your stuff (you hope).

Possible Implementation:
It should be possible to implement this in the Debug Server by providing scripts that are known to be libraries. 

(UI could be a context menu on the sources to indicate that this is a library script)

When running in Debug mode, when entering a frame, the Debug Server can check to see if this script url is one of the libraries and continue stepping until the current frame is in a different source url.
plus one that.
I have been recently playing with jQuery a lot and debugging custom functions built around jQuery is a hell. Up to 10 stack frames on line 2 of jquery.min.js and then you finally press the step over button and miss the frame which you were actually looking into.
Assignee: nobody → nfitzgerald
Alias: blackbox
Depends on: 877682
Depends on: 877686
Summary: Blackbox Libraries in Debugger → [meta] Blackbox Libraries in Debugger
Depends on: 892599
Depends on: 892605
Depends on: 895270
Depends on: 895272
Depends on: 895543
Depends on: 895565
Depends on: 898059
Depends on: 898063
Depends on: 899877
Depends on: 901030
Depends on: 901142
Depends on: 901169
Depends on: 901712
Depends on: 901733
Depends on: 903217
Depends on: 905046
Depends on: 905263
Depends on: 905450
Depends on: 905859
Depends on: 905136
Priority: -- → P5
Blocks: 917072
Depends on: 924238
Depends on: 933744
Assignee: nfitzgerald → nobody
Depends on: 967156
Depends on: 1032379

Updated

3 years ago
Summary: [meta] Blackbox Libraries in Debugger → [meta] Blackboxing

Updated

3 years ago
Depends on: 952648

Updated

3 years ago
Depends on: 923802

Updated

3 years ago
Depends on: 905863

Updated

3 years ago
Alias: blackbox → dbg-blackbox
Is this bug restricted to blackboxing within the Debugger panel? If not, bug 1102797 should be blocking it.

Sebastian
User Story: (updated)
Flags: needinfo?(nfitzgerald)
Flags: needinfo?(ejpbruel)
Sorry, wrong bug. The correct one is bug 905978.

Sebastian
(In reply to Sebastian Zartner from comment #3)
> Sorry, wrong bug. The correct one is bug 905978.
> 
> Sebastian

Yeah, this bug is restricted to blackboxing within the Debugger panel. But thank you very much for bringing that bug to my attention!
Flags: needinfo?(ejpbruel)
I mean, it seems like it makes sense to add that bug as a blocker just to keep it tracked, unless we want to add another meta meta blackboxing bug and start getting super bureaucratic and all that...

Eddy?
Flags: needinfo?(nfitzgerald)
(In reply to Nick Fitzgerald [:fitzgen] from comment #5)
> I mean, it seems like it makes sense to add that bug as a blocker just to
> keep it tracked, unless we want to add another meta meta blackboxing bug and
> start getting super bureaucratic and all that...
> 
> Eddy?

I agree that we shouldn't be overly bureaucratic about these things, but I'm a bit worried that I'll lose overview of what bugs belong to the debugger if we also start tracking non-debugger stuff under these meta bugs.

On the other hand, blackboxing is a feature that primarily belongs to the debugger. The fact that we sometimes need to make changes in closely related components doesn't really change that, so I guess it wouldn't hurt to add this bug as a blocker.

If we run into more of these 'related' bugs in the future, let's decide on a case by case basis whether to add them to one of these meta bugs or not. Does that sound reasonable for now?

Updated

3 years ago
Depends on: 905978
Depends on: 1108042
Depends on: 1111012

Updated

3 years ago
Summary: [meta] Blackboxing → [meta] Debugger blackboxing

Updated

3 years ago
Depends on: 1092863
Depends on: 1118152
Depends on: 1112435
No longer depends on: 1112435
Depends on: 1208131

Updated

8 months ago
Depends on: 1327720
You need to log in before you can comment on or make changes to this bug.