Stream: ideas

Topic: dbg


view this post on Zulip Richard Feldman (Nov 19 2022 at 18:43):

I wrote up a proposal - any feedback welcome!

https://docs.google.com/document/d/1VsEGIwZDWdssCQKnzxijjzpj0WpgTSsR_eeZHX0A4ug/edit?usp=drivesdk

view this post on Zulip Luke Boswell (Nov 19 2022 at 19:34):

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?

view this post on Zulip Georges Boris (Nov 19 2022 at 20:19):

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/

view this post on Zulip Richard Feldman (Nov 19 2022 at 21:01):

whoa, I hadn't seen that

view this post on Zulip Richard Feldman (Nov 19 2022 at 21:01):

but it looks awesome! :heart_eyes:

view this post on Zulip Richard Feldman (Nov 19 2022 at 21:03):

yeah I definitely think the editor should be free to do more with this than the command line would :big_smile:

view this post on Zulip Richard Feldman (Nov 19 2022 at 21:03):

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