electron-nuxt
electron-nuxt copied to clipboard
debugging with vscode
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"
]
}
]
}
Did you figure this out eventually?
Nope
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.