HarperFast / HarperFast/harper
Disconnecting the debugger seems to freeze the Harper process
- Dominant language
- JavaScript
- Stars
- 89
- Forks
- 10
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 200
Description
### Bug Summary
The debugger can sometimes cause Harper to seemingly freeze.
### Reproduction Repository (if applicable)
_No response_
### Steps to Reproduce
1. Create a basic `resources.js` with `jsResource` application
2. Set a breakpoint
3. Install Harper in dev mode (ensure `threads.debug: true`) and run the application
4. Attach a debugger
5. Run a request that causes the debugger to break
6. Continue the debugger and let the request complete
7. Disconnect the debugger
8. Witness Harper freeze or crash or something.
### Expected Behavior
I expect Harper process to return to normal.
### Actual Behavior
When this occurs, the Harper process doesn't exit. Additional requests hang. Trying to exit the process with CTRL+C doesn't work. I'm not sure what is frozen or failing, but its definitely not working!
If you try `harper stop` or `harper status` in a separate process they'll say they cannot find `hdb.pid` and that harper is "stopped", except if you query `localhost:9926` it'll hang. So there must be some phantom process/thread situation going on?
### Platform
_No response_
### Console Errors
_No response_
### Screenshots or Videos
_No response_
### Additional Context
_No response_
### Are you planning to fix this issue?
No, just reporting the issue
### First-time contributor support
- [ ] I'm new to contributing and would appreciate guidance on the process
- [ ] I'd like help understanding the project structure
- [ ] I need assistance with setting up the development environment
- [ ] I'm comfortable contributing, but new to this project specifically
Contributor guide
Assessment
This issue has not been assessed yet.