News for hackers. Stuff that matters.
Re:Hung by a thread by Negitivefrags on Saturday January 24, 2026 @03:21PM (#46747276)
It's quite interesting to me the way that different "programming cultures" exist around debuggers.

If you grew up doing windows C++ development, looking at things in a debugger is your first step. You only resort to printing values if you can't immediately see what happened in the debugger.

A lot of other envioronment/language cultures are the opposite. Obviously both have their place, but I do feel like more people should use the debugger as the first step instead of the last.

Re:Hung by a thread by rcxdude on Saturday January 24, 2026 @06:17PM (#46748743)
For embedded applications, especially robotics, it tends not to be a great default because it stops the process, which tends to be bad for realtime control loops. That said, a complete hang is the situation where I absolutely would try to get a debugger attached and get a backtrace as one of the first things to try.
Re:Hung by a thread by tubs on Sunday January 25, 2026 @05:21AM (#46752675)
If you’re working in robotics and don’t have fully deterministic event based replay you need to find a new middleware.
Re:Hung by a thread by nasnasnasnasnas on Sunday January 25, 2026 @12:00AM (#46750887)
I print first and get a feel for the code... Debuggers always slowed me down, and yes this was for c++