Seleccionar página

You can use up-arrow or type the start of a previous command to search your command history in DevTools, but if you don’t recall the command and it’s far away in your history, you can use this method to see all your console history:

  1. While in DevTools, Undock into separate window (search for it with Ctrl+Shift+P)
  2. Ctrl+Shift+J to DevTool your DevTools (inceptioooooon)
  3. Go to the Application tab -> Local Storage -> devtools://devtools
  4. Double-click or Edit the value of consoleHistory, and copy it
  5. To unescape the backlashed newlines and quotes, paste it into a variable and print it to console, where a ‘Copy’ button will appear:
    history = ["Your console history here"]
    console.log( history.join( '\n\n------\n\n' ) )
  6. Or inject it into a new tab:
    var win = window.open(); 
    win.document.body.innerHTML = "<pre>"+ history +"</pre>";

Bonus tip: you can Ctrl+Shift+P Clear console history.