Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by ramraj07 on Sunday January 31, 2021 @07:20AM
(#25978274)
Because I have, my colleagues have, in fact we probably spent more than an hour and just decided it's not worth it. I decided it's not worth it because I had a way to debug, while others decided they will just code without proper debugging tools because they only want to work through docker.
[ Parent
| on HN ]
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by hurflmurfl on Friday February 05, 2021 @09:17AM
(#26036529)
My (limited) experience debugging Typescript/Node, Typescript/Browser, PHP using IntelliJ and Docker has been pretty much like this:
1. Open a port on the container for debugging
2. Tell the debugger in the container what's the port it should use (if you're not using the default one)
3. Tell the IDE what port it can use to connect to the debugger (if you're not using the default).
4. Debug it!
For things like Typescript you might need some extra trickery because it's all transpiled, so you'll need to make sure your sourcemaps are set up correctly, but that's not overly difficult.
It did take me several hours to work everything out and write a README so that every time we get a new hire / someone sets up a new PC they can just follow the instructions. I'd say it was time well spent.