is it possible to run chrome in debug mode? is it possible to run chrome in debug mode? google-chrome google-chrome

is it possible to run chrome in debug mode?


Yes!

You can start chrome from the command line on a mac. See a previous question here

something like this:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

You can also pass a flag to make chrome output to a log file by appending:

--enable-logging --v=1

This should write a log file chrome_debug.log which lives somewhere in your ~/.config/ directory.

Then you can tail that log. My command for that is:

$ tail -F ~/.config/chromium/chrome_debug.log

Your path to the log file may be different.

Hope that helps!


I am not completely sure whether I understood it correctly but maybe you want to check out chromium.org HOW-TO for mac rather than windows. you have two possibilities to debug the renderer process

a) Run Chrome in a single processorb) Attach XCode's debugger to a renderer process after launch

They are described in detail here. Hope that helps

EDIT: updated the link


In a similar way as Rimian's answer, in Windows you can also start Chrome from command line enabling logging. Just open CMD and type:

cd C:\Program Files (x86)\Google\Chrome\Applicationchrome --enable-logging --v=1

The log file chrome_debug.log is in C:\Users\<USERNAME>\AppData\Local\Google\Chrome\User Data. Notice you have to replace for your username.