4 ms·
Yea, first you just have to get your debugger (and maybe the rest of your toolchain) installed in the container, along with your source code.. and then you run
by clarry 7y ago
Yea, first you just have to get your debugger (and maybe the rest of your toolchain) installed in the container, along with your source code.. and then you run into things like crazy wonky terminal support.
Sucks if you want to use a more advanced debugger interface, because you're not going to install that in the container.
- freeone3000 7y agoHave you tried using the remote debugger interface? Python and Java have rather robust remote debugging support over TCP.
- madmax96 7y agoSimple solution, use multistage builds. In your `debug` build, include a debugger. Use this to debug. In your `release` build, just include the app and its dependencies. Use this in prod.
- EamonnMR 7y agoIn my case it was just Python using `pdb` so it wasn't so bad. Though it does get extremely janky if you, say, run a server and hit it with multiple requests that all hit a breakpoint... you end up with your input being sloshed across multiple debug sessions!