Skip to content
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

VSCode timing out when running debugger #551

Closed
mshannon-sil opened this issue Oct 8, 2024 · 4 comments · Fixed by #583
Closed

VSCode timing out when running debugger #551

mshannon-sil opened this issue Oct 8, 2024 · 4 comments · Fixed by #583
Assignees
Labels
bug Something isn't working

Comments

@mshannon-sil
Copy link
Collaborator

mshannon-sil commented Oct 8, 2024

Multiple developers have encountered an issue where, some seconds after VSCode starts up the debugger, it quietly exits without beginning to step through the SILNLP repo code. It seems that the likely root cause of the issue is the default timeout in debugpy being too short. We've found that increasing the DEBUGPY_PROCESS_SPAWN_TIMEOUT in the ~/.profile of the container fixes the issue, so this environment variable should be added to the Dockerfiles.

@mshannon-sil mshannon-sil added the bug Something isn't working label Oct 8, 2024
@mshannon-sil mshannon-sil self-assigned this Oct 8, 2024
@benjaminking
Copy link
Collaborator

I wonder if this will be improved by removing OpenNMT/Tensorflow? Anecdotally, I've noticed that Tensorflow takes a long time to load when starting SILNLP.

@mshannon-sil
Copy link
Collaborator Author

It might help, but I'm not entirely sure. In the cases I've seen, the debugger exits before logging anything about Tensorflow (or in general) to the console, so it's hard to know for certain. We could wait to see the results of that before adding this fix to the containers.

@mshannon-sil mshannon-sil moved this from 🆕 New to 🏗 In progress in SIL-NLP Research Oct 16, 2024
@TaperChipmunk32
Copy link
Collaborator

I could add this to my PR, since I am already updating the Dev container.

@mshannon-sil
Copy link
Collaborator Author

@TaperChipmunk32 that would be great.

@TaperChipmunk32 TaperChipmunk32 linked a pull request Nov 5, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in SIL-NLP Research Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants