top | item 46763583

(no title)

compootr | 1 month ago

I don't agree! It's easiest to printf() things since you don't have to have tooling to debug every language you want to work with!

while you should know this for anything you're proficient in, I usually reach for printf since it's usually quicker than messing with a debugger :)

discuss

order

locknitpicker|1 month ago

> I don't agree! It's easiest to printf() things since you don't have to have tooling to debug every language you want to work with!

Nothing is easier than setting a breakpoint in a line of code and running the app.

When a breakpoint is hit, you also have access to local variables and their state. Some debuggers even allow us to change variable values at runtime.

Using printf is effective, but far from being the best way to achieve anything.

soulofmischief|1 month ago

You guys are probably gonna laugh me out of the room, but I use a combination of both printing and debugging tools when identifying issues.