Rendered at 16:20:20 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
oweiler 2 days ago [-]
Or use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency.
ollysb 2 days ago [-]
Different tools for different cases. Debuggers are great for a snapshot in time but print statements are better for seeing the execution flow.
slifin 1 days ago [-]
As a profession we need to phase out point in time debuggers and replace them with reverse debuggers or "time travel" debuggers
____mr____ 1 days ago [-]
I think PIT debuggers have their use especially with regards to altering state mid run, but this is the first time I've heard of reverse debugging and it seems incredibly useful, especially for multithreaded software I'm often debugging
pjmlp 2 days ago [-]
Yeah, the amount of wasted hours with 1960's teletype debugging.
Ah but servers and embedded, that is why telemetry, execution traces, and debugger controlled action points exist.
RockRobotRock 2 days ago [-]
>Do you ever use print() or log() to debug your code?
I haven't written my own code in months at this point...kind of depressing to think about
It began as a better `console.log()` for humans, but I ended up making it better for AI coding agents.
I got tired of copying dev console output, so coding agents can now just insert the exact calls they need and query the output without human intervention.
_345 1 days ago [-]
i got half way through the readme for this project and had the same thought and got sad and just left the page
squirrellous 2 days ago [-]
My first thought as well. Debugging is actually a decent use case of AI.
vitally3643 2 days ago [-]
I have a board with a logic analyzer, debug/flash probe, PSU, and multimeter on my desk being driven and debugged all autonomously by the AI.
While the automation and systems side of my brain is thrilled that all of this id automated and integrated, developer brain is sad
benj111 2 days ago [-]
So what do you actually do then?
awoimbee 2 days ago [-]
Debugging in python is already so easy with `print(f"{myvar=}")` and `breakpoint()`...
Hackbraten 2 days ago [-]
This is the correct answer. `ic(foo(123))` can be written as `print(f'{foo(123)=}')` without depending on yet another third-party library which is not pulling its weight.
smackeyacky 2 days ago [-]
I haven’t used print for debugging for ages. Now it’s all trace on azure and hope your bug ends up in the sampled data in whatever that stupid thing is called. App insights or some rubbish. Apparently a good old log file just isn’t good enough it has to be larded up with a query language. Grep was fine guys.
rurban 2 days ago [-]
Cannot recommend icecream, way too slow. But the use case of logging shines with realtime systems, or concurrent apps. You won't be able to efficiently debug them without logging. I live in my debugger, but logging is mandatory for the big picture.
grun 1 days ago [-]
hey! icecream author here. what/how/where is icecream too slow for your use case(s)? feedback is how good products become great
Ah but servers and embedded, that is why telemetry, execution traces, and debugger controlled action points exist.
I haven't written my own code in months at this point...kind of depressing to think about
It began as a better `console.log()` for humans, but I ended up making it better for AI coding agents.
I got tired of copying dev console output, so coding agents can now just insert the exact calls they need and query the output without human intervention.
While the automation and systems side of my brain is thrilled that all of this id automated and integrated, developer brain is sad
Looks like the project has a linked repo that appears to do a similar thing for C but it doesn't generically format the arguments.