Mr.Ping
Mr.Ping

Reputation: 71

How always enable Chrome Devtools?

I tried the command:

chrome.exe --always-enable-dev-tools

but it doesn't exist: http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/chrome/common/chrome_switches.cc&l=50

Do you have another solution?

Upvotes: 2

Views: 753

Answers (2)

Mr.Ping
Mr.Ping

Reputation: 71

I edited the source of "browser_navigator.cc". Now I have the devtools each new tab or window.

How: edit the source file browser_navigator.cc

include

#include "chrome/browser/debugger/devtools_toggle_action.h"
#include "chrome/browser/debugger/devtools_window.h"
#include "content/public/browser/devtools_manager.h"

and after

LoadURLInContents(params->target_contents->tab_contents(),url, params, extra_headers);

I add

 DevToolsWindow::ToggleDevToolsWindow(params->target_contents->tab_contents()->GetRenderViewHost(),DEVTOOLS_TOGGLE_ACTION_NONE);

and make :)

Upvotes: 5

Related Questions