Reputation: 100000
I have this code for a Chrome Extension
chrome.tabs.create({url: chrome.extension.getURL('dist/index.html')});
is there an option I can add to this call, so that Dev Tools is automatically opened when the tab is created?
looks like there is a command line flag for a Chrome for a new window:
--auto-open-devtools-for-tabs
but not sure if this applies for single tabs
Upvotes: 2
Views: 4482
Reputation: 2684
The is no way to do this now, and unlikely will ever become possible.
It seems like it was experimental API few years ago, but now it's removed.
For more information check this question.
Upvotes: 3