Closed Bug 1690450 Opened 4 years ago Closed 3 years ago

[Debugger] more granular ignore for step-by-step in the debugger

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: karlcow, Assigned: bomsy)

References

(Blocks 3 open bugs)

Details

(Whiteboard: dt-webcompat)

Attachments

(2 files, 3 obsolete files)

Currently the debugger makes it possible to ignore a full file when doing step by step. The eye icon at the bottom left.

It would be great to be able to have a similar feature

  1. for functions
// [crossed_eye]   
function blah() {
   //plenty of code
}

would make it possible to ignore the step in for this function and just go to the next instruction.

  1. for loop code
// [crossed_eye] 
for (let i = 0; i < 10000; i++) {
  str = str + i;
}

You would just jump at the } after the loop has finished

Blocks: dbg-control
Severity: -- → S3
Priority: -- → P3

Steve, are there good platform API we could use to ignore specific functions and/or loops when stepping?
(please let me know if there is anyone else who could know the answer)
From the UI perspective we could introduce some kind of an opposite to a breakpoints saying "Never pause here".

Thank you!

Honza

Flags: needinfo?(sphink)
Whiteboard: dt-webcompat
Assignee: nobody → hmanilla
See Also: → 1742829
Attachment #9252473 - Attachment description: Bug 1690450 - [devtools] Rename the getSourceId to getBlackboxInfoForSource r=ochameau → Bug 1690450 - [devtools] Rename the getSourceId to getBlackboxRangeForSource r=ochameau
Pushed by hmanilla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b264a14f5258
[devtools] Add pref for blackboxing lines r=ochameau
https://hg.mozilla.org/integration/autoland/rev/314f2ff57cc9
[devtools] Rename the getSourceId to getBlackboxRangeForSource r=ochameau
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

As we're working on this area and wondering about UI, note that we do have prior discussion regarding blackboxing/ignoring in https://github.com/firefox-devtools/ux/issues/84
(the idea was to have a crossed-file icon, some text label to make it explicit and use another color than blue)

Attachment #9252856 - Attachment description: Bug 1690450 - [devtools] WIP Implement blackboxing lines → Bug 1690450 - [devtools] Implement blackboxing lines UI functionality
Depends on: 1745795

Comment on attachment 9254133 [details]
Bug 1690450 - [devtools] Remove unused tabBlackboxed pref

Revision D133095 was moved to bug 1745921. Setting attachment 9254133 [details] to obsolete.

Attachment #9254133 - Attachment is obsolete: true
Blocks: 1745940

See Bug 1745940 for implementation of blackboxing lines

Comment on attachment 9253586 [details]
Bug 1690450 - [devtools] Add blackbox line support for actions and reducers

Revision D132774 was moved to bug 1745940. Setting attachment 9253586 [details] to obsolete.

Attachment #9253586 - Attachment is obsolete: true

Comment on attachment 9252856 [details]
Bug 1690450 - [devtools] Implement blackboxing lines UI functionality

Revision D132368 was moved to bug 1745940. Setting attachment 9252856 [details] to obsolete.

Attachment #9252856 - Attachment is obsolete: true
Blocks: dbg-blackbox
Flags: needinfo?(sphink)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: