4 ms·
I would also not normally connect to a REPL in a production environment, but it can come in handy. One can certainly attach a debugger to a running process in
by synthc 4y ago
I would also not normally connect to a REPL in a production environment, but it can come in handy.
One can certainly attach a debugger to a running process in production, I've done it several times to debug gnarly issues.
- tonyarkles 4y agoI’ve done it in Elixir a handful of times to try to understand a bug that I couldn’t reproduce in my dev environment. And a few times to run some queries for a client and dump them out to CSV.
- fud101 4y agoYou used an elixir debugger on production?
- tonyarkles 4y agoElixir REPL in production yeah. Not to modify anything, but to inspect the state of the world and figure out why some OTP apps were dying. I'm drawing a blank on the name of the build tool, but the "launch binary" it produces has an option to fire up a second copy of your app, keep the console alive, and connect it to the cluster as another node. Worked like a charm, although it's something I wouldn't want to do on a regular basis :)