Closed Bug 1170728 Opened 9 years ago Closed 9 years ago

Allow fetch inspected object in console DevTool

Categories

(DevTools :: Console, defect)

38 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1025778

People

(Reporter: merzhin, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150515073613

Steps to reproduce:

Open Devtool, go to Console
type:
inspect({prop: 'hello', world: 12})


Actual results:

the Inspect Panel show the object; 
but you have no way of assigning the object as a Js variable



Expected results:

the Inspect Panel show the object; 
but if you type a command like $_ or smthing similar, 
you can assign it to a var.

example

var myInspectedObject = $*
==> assign the inspected object to "myInspectedObject"
Component: Untriaged → Developer Tools: Console
Hi, we have a similar feature planned where you can assign the variable from console output
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.