-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Using lb-mocha
with VSCode's debug feature results in an error
#1348
Comments
The PR #1509 has landed. Is this ticket good to close? |
Nope, the issue here isn't coming from determining which |
@shimks Did you try to add |
@raymondfeng Just tried it out. I get |
@shimks Hi there, have you been able to get this working since? |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Description / Steps to reproduce / Feature proposal
When using VSCode's debugging feature with LoopBack 4's testing script
lb-mocha
, it is not possible to use therestart
button as doing so would result in timing out with anECONNREFUSED
error. I believe this is because the child processes (or the parent processes) aren't being correctly shut down when restarting.There are two child processes involved when
lb-mocha
is invoked:lb-mocha -> mocha (1st child process) -> _mocha (2nd child process)
Below is the settings I've tried to use with
lb-mocha
inlaunch.json
Ideally, we'd like to directly call
_mocha
so that we wouldn't have to deal with child processes, but that brings up the question of how we are going to handle testing the correct build for the node version the user is on.This was brought up in #1336
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: