-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-client remote debugging support #14540
Comments
We actually have a test to ensure this works, see Line 244 in 39c5c20
Can you fill out the Bug Report issue template in a comment below, in particular a minimal repro and version information would be very useful |
Electron version: v3.0.0-beta.5 Expected Behavior Actual Behavior Example of actual behavior To Reproduce https://gist.github.com/4eveRS/b80a836c313864d394191e7347efa580
|
One thing that I just noticed is that, if we use commands that use debugger/devTools interface, for example, setting a viewport in a webview through webContents.enableDeviceEmulation(), if later we set a debugger to that same webContents, that device emulation is disabled. So there's a issue when running debuggers, devTools and commands in webContents that utilize the devTools protocol. |
Fixed in #14566 |
I'm having the exact same issue in Electron 8.x To elaborate, if I have the devtools open for a webview and if I call |
Describe the solution you'd like
Since version 63, Chrome supports multi-client remote debugging, which means it can handle multiple debugger clients (such as webContents.debugger and devTools) at the same time.
In Electron current version, v3.0 Beta, this functionality is not working properly. Once the user set the debbuger in a webContent, if the same webContent request to open the devTools, the previous debugger attached to the webContent is detached and all configurations are lost.
I think many Electron users will find this functionality very useful, since it can give the full support of chrome devTool in app background while the app users can access the devTools of the same webContent.
My application for example, which is a browser, really needs that functionality in order to analyze the page and it's content, while it can't / shouldn't block the user to access the devTools of that same page.
Additional context
https://developers.google.com/web/updates/2017/10/devtools-release-notes#multi-client
https://crbug.com/129539
The text was updated successfully, but these errors were encountered: