2 ms·
I don't want to contribute to the printf vs debugger polarization that seems to be going on. But what I would like to mention: The first thing I do after `git
by vbsteven 5y ago
I don't want to contribute to the printf vs debugger polarization that seems to be going on. But what I would like to mention:
The first thing I do after `git clone` and getting the build working is spend a couple minutes trying to get a debugger working, preferably using the IDE debugger. Usually it's pretty simple and it works out of the box. Sometimes it requires fiddling a bit with debug ports and cli arguments (legacy Tomcat applications) or making sure sourcemaps are available (web frontend dev).
If I can't get it working within 15 minutes, printf it is. But in most higher level projects it's usually a trivial initial time investment that pays off in the long run.