I wrote up a proposal - any feedback welcome!
https://docs.google.com/document/d/1VsEGIwZDWdssCQKnzxijjzpj0WpgTSsR_eeZHX0A4ug/edit?usp=drivesdk
I like it! I'm certain I will use this a lot.
The only additions I could think of, and this is probably a terrible idea, but I thought I'd mention in the spirit of brainstorming...
What if dbg took arguments using - or --? So something like dbg myExpr --singleLine --recursive. I'm not sure which arguments you might want but mayne you could have; text descriptions, single vs multiline printing, pretty or short printed, expand structures recursively or not, print stack, print heap, dislpay call graph, pause program at this point and give me a REPL to play with variables or step through line by line, or maybe other debuging related things?
You probably saw this already but elixir's recent implementation of dbg was pretty exciting because of all it's live debugging/livebook integrations. It would be great if we left the proper doors open for possibly experimenting with things like that on our editor:
https://elixir-lang.org/blog/2022/09/01/elixir-v1-14-0-released/
whoa, I hadn't seen that
but it looks awesome! :heart_eyes:
yeah I definitely think the editor should be free to do more with this than the command line would :big_smile:
and I also think that pipeline behavior is cool, and worth revisiting in the context of expanding dbg to work as an expression
Last updated: Jun 16 2026 at 16:19 UTC