-
Notifications
You must be signed in to change notification settings - Fork 63
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
Breakpoints in VS Code #157
Comments
I'm not using VS Code myself, so I can't comment on that specifically, but you can definitely use the debugger in electron-mocha. Since |
Thanks for the reply. I tried changing it to this:
I'm pretty sure that's how you meant it. I'm kinda new to the Electron ecosystem, so if you had something else in mind please correct me. The tests work, but the breakpoints still don't hit unfortunately. Doing it this way also seems to create 2 debuggers according to the output messages. This is the test I'm testing with:
With a breakpoint on the
But no matter how I try to configure it with I also tried switching to a global |
I'm wondering if it's possible to set breakpoints in the VS Code debugger with electron-mocha.
This is my config in my project's
/.vscode/launch.js
fileIf I switch
"program"
to"${workspaceFolder}/node_modules/mocha/bin/_mocha"
, breakpoints work as expected.I found this issue, and I tried to add the
--debug
arg, but it doesn't work. I'm not sure if this is a configuration issue or if breakpoints are not supported.Thank you
The text was updated successfully, but these errors were encountered: