-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Debug with VSCode #46
Comments
This is because
You should go ask on the VS Code repository how to make the node debug arguments appear after your custom arguments ( |
I've tried the same, but still getting error (ran from cmd prompt):
By the way, thanks for the tip about VSCode. I got some clues from microsoft/vscode#16173. Below is how I've configured VSCode:
|
What version of electron forge are you using? The latest version definitely shouldn't throw that error |
Now I've switched to 2.2.0, and things are different now. When I didn't pass
But when I pass
|
I am unfamiliar with the fine art of attaching a debugger to the main Electron process and this isn't really an issue with "How can I debug the main process of Electron?" A good guide exists in the Electron repository. If that guide doesn't work you can ask for help in the Electron community or Slack Channel. |
I think I m not clear enough. All the above output is from running the app from command line. No VSCode here :) |
@manikantag Everything after the word c:\eapp>node_modules\.bin\electron-forge.cmd start --debug-brk=41000 Is exactly the same as c:\eapp>node_modules\.bin\electron.cmd . --debug-brk=41000 Therefore if that command doesn't do what you expect it to do or you can't figure out what the syntax is that you want, you need to ask over at the Electron community / slack areas. The |
This is to be expected, By the way, VSCode debug configurations have a boolean property called |
@enlight Yeah, I've figured it out. Now I m using 'Attach' mode to run the app. Somehow I m having issues with 'Launch' mode. |
test: Enfore a stricter code style
Please describe your issue:
Unable to start/debug the app using VSCode.
Console output when you run
electron-forge
with the environment variableDEBUG=electron-forge:*
. (Instructions on how to do so here. Please include the stack trace if one exists.With below launch.json configuration,
I m getting below error:
With below launch.json configuration,
I m getting below error:
What command line arguments are you passing?
Can be seen in above section
What does your
config.forge
data inpackage.json
look like?Can you please let me how to configure properly? Thanks.
The text was updated successfully, but these errors were encountered: