Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I usually make a stub function named debugThis(...) , then I just comment the print function once and viola!
-
Some logging class is indeed the answer. The neatest way to set it up is a service like Sentry, Bugsnag, Rollbar, etc.
-
Brachacz488yJust make your own logging method and use it. Also make some kind of config and then you can toggle logging on/off easily.
The next guy that comes to work on your code will appreciate it, especially if you use tags in your logs (related to method/task, I specify them in config).
Related Rants
-
Cyborg15A guy and a girl are in a Java seminar. Afterward, the guy approaches the girl and asks, "Hey gurrl, can I ge...
-
Dacexi24When there are only 2 pages on Google you know you're in serious shit.
-
practiseSafeHex20Fixing a parents iPhone, episode 1. Problem: "Whatsapp is gone off my phone" Debugging: Me: *unlocks phone...
Hoorah! My code finally works! Now gotta remove those 1000 print statements I used to identify the bugs 😥
undefined
logging
print
debugging
java