Closed
Bug 936666
Opened 12 years ago
Closed 6 years ago
shortcut to display the variable/property/left-hand-side that the cursor is on
Categories
(DevTools Graveyard :: Scratchpad, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: fitzgen, Unassigned)
Details
If I have the following code in scratchpad:
if (window.foobarbaz) {
// blah blah blah
}
And put my cursor somewhere in "foobarbaz", then execute $SOME_KEYBOARD_SHORTCUT, it should open the variables view with |window.foobarbaz| populating it.
Comment 1•12 years ago
|
||
With this I'm assuming you'd also execute the code? Like if you did:
> (function() {
> let foo = { bar: 10 };
> foo.bar;
> })()
In order to open the variables view on foo.bar, you'd have to both execute the code and then do some static analysis on the code to figure out where foo.bar came from.
Reporter | ||
Comment 2•12 years ago
|
||
I'd expect this to throw an error (and show that in the variables view) if you haven't already run the code.
Reporter | ||
Comment 3•12 years ago
|
||
Can we repurpose/share the code that the debugger uses (will use?) for hovering over variables?
Flags: needinfo?(vporof)
Comment 4•12 years ago
|
||
(In reply to Nick Fitzgerald [:fitzgen] from comment #3)
> Can we repurpose/share the code that the debugger uses (will use?) for
> hovering over variables?
You bet. As soon as bug 725235 lands that is...
Flags: needinfo?(vporof)
Updated•8 years ago
|
Severity: normal → enhancement
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 6•6 years ago
|
||
Scratchpad was removed in Bug 1519103 (Firefox 72). You can check the alternative in https://wiki.developer.mozilla.org/en-US/docs/Tools/Deprecated_tools#Scratchpad .
The Scratchpad bug list was reviewed and I think this bug can be safely closed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•