0

Is there a way to copy all the commands i have written, or to give it some range. Or at least print them out together so i can copy them.

I was trying out jquery selectors in console, after half hour of dealing with very messy dom structure i finally got what i wanted now to transfer that i have to back in history and copy paste every single command. It'd be nice if could log all i have writen, or like last 30 commands etc.

I think it should be possible, as i have seen pretty other advanced abilities of chrome console.

Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168

1 Answers1

0

This answer appears to address your question.

  1. Enable logging from the command line using the flags:

    --enable-logging --v=1
    

    This logs everything Chrome does internally, but it also logs all the console.log() messages as well. The log file is called chrome_debug.log and is located in the User Data Directory.

  2. Filter the log file you get for lines with 'CONSOLE(\d+)'.

via Save the console.log in Chrome to a file

More here on logging. The Chromium Projects: How to enable logging

Community
  • 1
  • 1
JSuar
  • 21,056
  • 4
  • 39
  • 83