adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

Command-click on functions to jump to their definition #13

Closed ElliotChong closed 11 years ago

ElliotChong commented 11 years ago

Feature request to allow command-clicking on a function call to jump to its definition.

This may be outside the scope of Theseus (perhaps more of a Brackets thing really), but when it comes to debugging it's a nice-to-have to quickly follow the flow of execution.

alltom commented 11 years ago

If you press Cmd+E (or the equivalent Windows hotkey), Brackets will open an inline editor with the source code for the function under your cursor. I don't use it that often, but my understanding is that it works all right.

For code locations where the location of the function definition is ambiguous or unknown (like callback functions), Theseus will know which functions were called from there, when they were called, and under what context, so it can provide a bunch of useful information to help you get to the right place. I'm not sure what this UI will look like, but something to help with this is definitely coming. :)