2 ms·
I use VS Code to hotpatch hotpatchable code. Half of the stuff I write is in Rust and I'm not smart enough to go and change bits of an executable. But for Pyth
by WirelessGigabit 3y ago
I use VS Code to hotpatch hotpatchable code. Half of the stuff I write is in Rust and I'm not smart enough to go and change bits of an executable.
But for Python it works out great, except for when the container doesn't start. If it doesn't start you can't connect VS Code to it.
The trick then is to use `docker cp` to pull out the file that breaks the python process, fix it, `cp` it back and try and start the container.
If possible I like to change the EXEC method to `/bin/bash`, the COMMAND to `tail -f /dev/null`, and execute the python process in an interactive terminal. That mitigates the container not starting issue... unless `tail -f /dev/null` fails. But if that's the case I've got bigger fish to fry.