Can I programmatically open the devtools from a Google Chrome extension?

Paul C Nichols picture Paul C Nichols · Jul 23, 2011 · Viewed 39.3k times · Source

I have a chrome extension which hooks into the devtools. Ideally I want a badge that, when clicked, opens up the devtools on the new tab which I created. Is there any way to do this from the background page?

Answer

lokeshsk picture lokeshsk · Jun 13, 2013

It seems unlikely that this is possible or will ever become possible,

check this: https://code.google.com/p/chromium/issues/detail?id=112277

which says: "We only allow explicit devtools opening."