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 like doing it as stupidly as possible.
works in JS.
debug = function (msg, status) {
let currentStatus;
if(status === 0) {
currentStatus = "[+]";
} else if(status ===1) {
currentStatus = "[*]";
} else if(status === 2) {
currentStatus = "[!]";
}
console.log(currentStatus + " " + msg + "\n");
} -
Nothing wrong with simplicity 🤷♀
Powerful debugging tools often have side effects as well. Some make your code slow, or interact with code in unpredictable ways... so if some dump or log statement works for your purposes, why not.
One trick I find essential though is to add some kind of test to the CI/deployment which fails if debug statements are present. -
Print("ass")
...
Print("butts")
...
...
Print("big butts")
...
...
...
Print("asses")
...
Print("ass butt") -
lilycollins9x0166dThink of it like a beginner guitarist learning how to strum a chord. This isn't a rock star solo, but it's the foundation for learning to play a song. https://fnafonline.io
-
benchase087dWhen tackling a complex issue, don’t just rely on one tool—leverage a combination of IDE features, network analyzers, and other debugging aids. The key is to be methodical and use each tool to its fullest potential to pinpoint and resolve issues.
-
benchase087dWhen tackling a complex issue, don’t just rely on one tool—leverage a combination of IDE features, network analyzers, and other debugging aids. The key is to be methodical and use each tool to its fullest potential to pinpoint and resolve issues.
Related Rants
Debugging
joke/meme
test
print
debug