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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging with vscode #585

Open
Suyashtnt opened this issue Jan 10, 2021 · 3 comments
Open

debugging with vscode #585

Suyashtnt opened this issue Jan 10, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@Suyashtnt
Copy link

I want to debug with vscode, i got the main process to work but not the renderer process

config:

{
  "version": "0.2.0",
  "configurations": [
      {
          "type": "node",
          "request": "launch",
          "name": "Electron: Main",
          "protocol": "inspector",
          "runtimeExecutable": "yarn",
          "runtimeArgs": [
              "dev",
              "--remote-debugging-port=9223"
          ],
          "windows": {
              "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
          }
      },
      {
          "name": "Electron: Renderer",
          "type": "chrome",
          "request": "attach",
          "port": 9223,
          "webRoot": "${workspaceFolder}",
          "timeout": 30000
      }
  ],
  "compounds": [
      {
          "name": "Electron: All",
          "configurations": [
              "Electron: Main",
              "Electron: Renderer"
          ]
      }
  ]
}
@michalzaq12 michalzaq12 added the help wanted Extra attention is needed label Mar 25, 2021
@jonasjancarik
Copy link

Did you figure this out eventually?

@Suyashtnt
Copy link
Author

Nope

@MentalGear
Copy link

MentalGear commented Dec 3, 2021

Correction: This works on 'debugger' statements, but breakpoints don't break.

{
  "configurations": [
    {
      // ONLY 'debugger'
      // BREAKPOINTS NOT WORKING
      "command": "yarn dev",
      "name": "Run App in Dev Mode",
      "request": "launch",
      "type": "node-terminal"
    }
  ]
}

If anyone else got any ideas, then comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants