debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Breakpoints] Support jumping to a function call

Open jasonLaster opened this issue 8 years ago • 4 comments

Last summer, we added a fancy feature for column breakpoints. The feature never shipped because the UX was too ambitious.

It would be nice to re-purpose the UI we built for a simpler feature "jump to call".

Here is a gist with a technical overview: https://gist.github.com/808bb1a1019594a22ff4b40c7dd8dd0f

Here is a video of how it could look: jump.mp4

jasonLaster avatar Mar 30 '18 18:03 jasonLaster

/claim

bomsy avatar Apr 30 '18 10:04 bomsy

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Apr 30 '18 10:04 claim

I started this on the plane https://github.com/devtools-html/debugger.html/commit/56f8c0680d7680ee4e765a82eac2551912d30453

My version works, but is clearly a proof of concept in that it does some things that are not great

Strategy:

  1. re-use preview/onMouseOver to register hovering on tokens
  2. tell Popup that we want to jump so it does a different style
  3. re-use preview/onMouseDown to call jumpToCall
  4. in jumpToCall look to see where we're currently previewing (remember preview also kicked off a preview we dont show)
  5. use that to jump...

I think the better strategy is to:

  1. add a generic codemirror:onTokenEnter event so that we can decouple previewing and jumping
  2. cleanup preview code and add a new jumping component

jasonLaster avatar Apr 30 '18 12:04 jasonLaster

Not on our roadmap.

Firefox Developer Tools (including Debugger tool) development is now entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

janodvarko avatar Feb 26 '21 13:02 janodvarko