Skip to content

How to inject to open devtools in Electron #20

@CHENKAI00

Description

@CHENKAI00

I successfully injected your config. But But I can't see any effect. Where are the parameters of “console.log ” logged? In addition, This project seems to only support injecting native v8 functions, which I am not sure. I have a question. If I want to open devtools, What code should I inject instead? I tried this script:
var allWebContents = require('electron').webContents.getAllWebContents() allWebContents.forEach((contents)=>{ if (contents.openDevTools) { contents.openDevTools(); } } But failed.
I don't know if my way is wrong. I sincerely look forward to your reply. Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions