-
Notifications
You must be signed in to change notification settings - Fork 59
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
Restarting debugger after file change doesn't work #86
Comments
That's very interesting. I was reading about this, and found that it might be timing out:
Can you verify that this works fast enough, or just increase the timeout. Maybe you can create a very simple repo. to reproduce your issue, so I can see it happens? Thanks |
I am pretty sure it's fast enough. Transpilation takes less than a second; and is nearly instant. I have updated my testing project to show issues for this issue: https://github.com/MagicLegend/ts-testing-project Sometimes I also get an error that the 9229 port is already in use ( When patching up the testing project, I actually managed to get an error logged instead of a stuck background process:
This throws when the |
Add me as a contributor, I've simplified the repo. |
Done. Please push your work to a different branch, so I can use the master branch for other issues. |
ERROR: Permission to MagicLegend/ts-testing-project.git denied to gilamran. Please make sure you have the correct access rights |
@gilamran You should have an email from Github, you need to click on that link to accept the invite. |
Didn't get one... |
@gilamran I have re-added you... I believe you are supposed to get an email from Github about this; which you have to click to accept. Otherwise forking my repo would also solve the issue. |
ok, found it it my github notifications |
@gilamran And are you able to reproduce the issues with the given config files? |
I was able to debug (breakpoints) and Edit: My mistake, it rerun the debugger as expected, but VSCode did not connect to the new debugger instance, and just ended the debugger session |
I was also trying the same with |
I haven't tried
Is this something that should be fixed on VSCode's side, or on Relating to the refused port, it could also be related to microsoft/vscode#89819. Though that issue mentions it being logged repeatedly; which is not the case for me. |
microsoft/vscode#87321 could also be related to the stuck |
ok, I found the issue (Pushed to the repo) |
Hmm, I guess that the other flow I had ( |
Hi,
I have the following configurations:
Package.json script:
Launch.json:
I was hoping that using the
"restart": true
config as described here in the VSCode docs would work withtsc-watch
, but that doesn't appear to be the case. It looks like the watcher rebuilds, but not restart the node server. I can observe in the logs that the watcher started the transpilation; since it outputs the start and finish message.Am I misconfiguring something here, or is this scenario (restarting and re-attaching the debugger from
launch.json
) not supported? Note that manually invoking thestart-watch
and then attaching using the second launch configuration does work across restarts. It's just when I invoke the NPM script vialaunch.json
that it doesn't work.Thank you for your time.
The text was updated successfully, but these errors were encountered: