Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to output all the code I've typed into the console in the last session?

Is it possible to output all the code I've typed into the console in the last session? just the code, without the results.

like image 841
user1294129 Avatar asked Aug 12 '12 18:08

user1294129


1 Answers

Open up a new web inspector while in the current inspector (ctrl+shift+j, they removed recursive inspect element), then do this in the new inspector:

console.dir(WebInspector.consoleView.prompt._suggestBox._textPrompt._data)

Just to be clear, you don't run this in the inspector for the page. You run this in the inspector's inspector. I.E:

Your inspector must also be undocked, otherwise it will just go to the console tab of the current inspector instead of opening a new inspector that inspects the current inspector.

enter image description here

like image 170
Esailija Avatar answered Oct 18 '22 19:10

Esailija