Follow

When you're extremely frustrated with a bug in your code and start outputting debug logs to try to make sense of it all

· · Web · 5 · 1 · 13

@mawr oh extreme mood, i'm doing this exact debug technique right now

@mawr@plush.city same energy, from earlier today.. i'm in a 00's emo phase i guess:

else {
Serial.println("\nXXX no i2c_dev init XXX");
}

@mawr

Right???

I tend to have stuff like:
LOGGER.critical("BANG")
stuff
LOGGER.critical("WTF")
more stuff
LOGGER.critical("WTF2")
even more stuff
LOGGER.critical("WTF3")

@zetasyanthis @mawr We have access to incredibly powerful debuggers and yet we use print.

I love us nerds <3

@pmfrlyn @mawr

I know, right? I've been using Python for 10+ years, and have never touched PDB. O.o; (Granted, I got into the habit from microcontroller work, where UART prints are often the best you can do. :P)

@pmfrlyn @mawr

I also have to give mad props to the traceback module, which makes life way easier when doing error handling in multiple processes.

Sign in to participate in the conversation
✨Plush✨City 🏙

This is a space for soft friends and friends of soft friends to gather together!

In this city we're all about soff frens and compassion and caring about each other!

Code of Conduct in a Nutshell

Discrimination & Bigotry Won’t Be Tolerated.

Leave your hatred at the door.

Treat this Space and Those Within it with Respect.

Listen actively to and honor the requests of others; always respond with compassion first.

Consent is Important in all contexts.

If you’re ever unsure, ask first. Use CWs where required.

Listen; Don’t Make Excuses.

If you’re accused of causing harm, either take some responsibility or ask moderators for help.

Don’t Break the Law Here.

The whole space may be liable if you do.

Use the Report Feature.

All reports go straight to our moderation team. We’re here to help!

For more detail, please
Review our Full Code of Conduct