Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open devTools after open a new tab? #1079

Closed
0604hx opened this issue Feb 6, 2024 · 1 comment
Closed

How to open devTools after open a new tab? #1079

0604hx opened this issue Feb 6, 2024 · 1 comment

Comments

@0604hx
Copy link

0604hx commented Feb 6, 2024

Hello, I want to open devTools after open a new tab, like this:

// background.js
chrome.tabs.create({ url }, tab=>{
    console.debug('tab opened, id=`, tab.id)
    // here to open devTools for the tab with some code
})

Thanks! 馃槃

@oliverdunk
Copy link
Member

I'm afraid there isn't currently an API to open DevTools. You could request this at https://crbug.com/, although I expect it may be an unlikely change since DevTools is a scary capability we don't necessarily want to expose to end users.

Do keep the feedback coming and feel free to use https://groups.google.com/a/chromium.org/g/chromium-extensions in the future.

@oliverdunk oliverdunk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants