Bug 875034 (dbg-blackbox)

[meta] Debugger blackboxing

NEW
Unassigned

Status

P5
normal
6 years ago
3 months ago

People

(Reporter: rcampbell, Unassigned)

Tracking

(Depends on: 11 bugs, {meta})

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

6 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
Summary: Blackbox Libraries in Debugger → [meta] Blackbox Libraries in Debugger
Priority: -- → P5
Assignee: nfitzgerald → nobody
Summary: [meta] Blackbox Libraries in Debugger → [meta] Blackboxing
Depends on: 952648
Depends on: 923802
Depends on: 905863
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?
Depends on: 905978
Depends on: 1111012
Summary: [meta] Blackboxing → [meta] Debugger blackboxing
Depends on: 1092863
Depends on: 1118152
No longer depends on: 1112435

Updated

2 years ago
Depends on: 1327720

Updated

8 months ago
Product: Firefox → DevTools
Keywords: meta
You need to log in before you can comment on or make changes to this bug.