Rendered at 01:43:31 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
oweiler 18 hours ago [-]
Or use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency.
ollysb 9 hours ago [-]
Different tools for different cases. Debuggers are great for a snapshot in time but print statements are better for seeing the execution flow.
pjmlp 18 hours 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.
awoimbee 16 hours ago [-]
Debugging in python is already so easy with `print(f"{myvar=}")` and `breakpoint()`...
Hackbraten 14 hours 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.
RockRobotRock 18 hours 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
benj111 7 hours ago [-]
So what do you actually do then?
squirrellous 12 hours ago [-]
My first thought as well. Debugging is actually a decent use case of AI.
vitally3643 9 hours 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
smackeyacky 14 hours 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.
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.
rurban 6 hours 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.
Borborygymus 15 hours ago [-]
Remember COBOL's EXHIBIT?
IshKebab 11 hours ago [-]
...use slightly fancier print() instead!
soizi 17 hours ago [-]
why another tool for that ? think standard with other team/company and use the same integrated ones.
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
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.