Open Bug 1608312 Opened 6 years ago Updated 3 years ago

Option to blackbox anything outside the current directory

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Harald, Unassigned)

References

(Blocks 1 open bug)

Details

User Story

When debugging my app code, I want to ignore dependencies outside of my source folder, so that debugger only pauses in the app code.

Continued from https://github.com/firefox-devtools/debugger/issues/6708

Other inspirations:

Chrome's Node debugging helper: https://github.com/GoogleChromeLabs/ndb#what-can-i-do

By default, ndb blackboxes all scripts outside current working directory to improve focus. This includes node internal libraries (like _stream_wrap.js, async_hooks.js, fs.js) This behaviour may be changed by "Blackbox anything outside working dir" setting.

I believe that this bug is a duplicate of Bug 1118152 which was resolved in Firefox 76.

Kyle, not fully. This is tying into "Set current directory", a slightly hidden option that changes the top-level folder to a subfolder.

My apologies for jumping to a conclusion on this issue too quickly Harald. If my understanding of this feature is correct then it would appear that the creation of the blackBoxSources() function in devtools/client/debugger/src/actions/sources/blackbox.js would mean that there is now one less hurdle in the way to implementing this feature from when it was first brought up.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.