JamesHutchison / pytest-hot-reloading

A hot reloading pytest daemon, implemented as a plugin
MIT License
89 stars 2 forks source link

Add debug support #7

Closed JamesHutchison closed 1 year ago

JamesHutchison commented 1 year ago

Currently, you can run the server via a debug profile and then debug that way. There's some logic in place for using a debug port for connecting to a debug server. The idea is that the python client detects when its being ran with the debugger and switches to the debug port.

The current pid logic need to be updated, I think.

Even better would be somehow forwarding the debug communication through the client. We could omit the debug profile entirely. This is out of scope for this issue, and is represented in issue #6

JamesHutchison commented 1 year ago

I can see an issue with possibly having two instances, where something works correctly in one but not the other because one of the instances is in a bad state. For this reason, the debug parameter was removed and this ticket will be closed.