Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>Debugger for ElectronNew to Visual Studio Code? Get it now.

Debugger for Electron

Kode

|
35,233 installs
| (3) | Free
Debug your JavaScript code in Electron.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Electron debug extension

A VS Code extension to debug your JavaScript code in Electron. This is a fork of vscode-chrome-debug which automatically downloads and runs Electron. This extension does nothing which fundamentally can not be done via vscode-chrome-debug and a proper launch configuration and exists purely for convenience.

See https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome for more detailed information.

Launch

Two example launch.json configs with "request": "launch". You can specify appDir to point to some Electron application, otherwise this defaults to the project directory.

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "electron",
            "request": "launch",
            "name": "Launch this",
            "sourceMaps": true
        },
        {
            "type": "electron",
            "request": "launch",
            "name": "Launch something",
            "appDir": "/path/to/my/electron/app/",
            "sourceMaps": true
        }
    ]
}
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft