You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm developing an Electron app in VSCode but I can't figure out how to debug it. The way to normally run in in the terminal is like this: electron-forge start. Inside of VSCode, I'm trying to run it like this:
{
"name": "Launch Electron",
"type": "node",
"args": [
"start",
"--debug-brk=5858",
"--nolazy"
],
"program": "${workspaceRoot}/src/main.js", // ensure this is path to main.js file
"cwd": "${workspaceRoot}",
"port": 5858,
// as you have noted, this is also important:
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-forge"
}
And the debug console shows this:
/Users/Hum4n01d/Desktop/Tech/Electron/Amango/node_modules/.bin/electron-forge --nolazy src/main.js start --debug-brk=5858 --nolazy
✔ Checking your system
error: unknown option `--nolazy'
The problem is, VSCode adds a --nolazy flag before the start argument as well as at the end which throws off electron-forge. How do I remove the flag or put it behind the others?
VSCode Version: Version 1.12.0-insider (1.12.0-insider)
OS Version: macOS Sierra 10.12.4
The text was updated successfully, but these errors were encountered:
You can checkout how we are debugging vscode which is also an electron app here. Note that we are using the chrome debugger for this
As to how debug electron-forge I am not sure, but I think this is a good candidate for a stack overflow question and I believe the community will help you solve this.
fyi @roblourens@weinand as they might have additional ideas
Hi, I'm developing an Electron app in VSCode but I can't figure out how to debug it. The way to normally run in in the terminal is like this:
electron-forge start
. Inside of VSCode, I'm trying to run it like this:And the debug console shows this:
The problem is, VSCode adds a
--nolazy
flag before thestart
argument as well as at the end which throws offelectron-forge
. How do I remove the flag or put it behind the others?The text was updated successfully, but these errors were encountered: