16
Leave a Reply

avatar
16 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
ORaygozaInspector_RobertAlcohorsezushiba3lRey Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
PurelyCreative
Guest
PurelyCreative

When it gets to the point where I can’t find the bug after an hour, I tend to do

print(“fuuuuckkkk”)

Akiraktu-dot-png
Guest
Akiraktu-dot-png

I feel personally attacked by this

zvaragan
Guest
zvaragan

Also if you work with multithreaded code, debugger interferes with code running, so only logging can give you a real picture of what is going on.

Bonesters
Guest
Bonesters

This actually works better if you don’t have easy access to whatever computer the program is being run on. Just check for a special debug environment variable, and wrap all those print statements in if(debug). No need to install a debugger on the client’s computer that way.

DistractedOni
Guest
DistractedOni

I can’t pack my debug tool into a jar for testing production code :<

Zalvixodian
Guest
Zalvixodian

Typically you can’t debug in Production. But you can log. Help your Ops friends out and print more things.

gman118x
Guest
gman118x

My favorite is when you throw in a hello, and it doesn’t come out, which makes you realize you weren’t running the thing you were trying to debug.

StEaLtHmAn_
Guest
StEaLtHmAn_

Print(“1”);
Print(“2”);
Print(“3”);
Print(“4”);
//…

prparadoxy
Guest
prparadoxy

Log.d(“tag”,””+variables)

n_sweep
Guest
n_sweep

hey it me

leonator3000
Guest
leonator3000

I don’t even know how to use those tools

3lRey
Guest
3lRey

STEP back, son.

zushiba
Guest
zushiba

Error_log for big brainers.

Alcohorse
Guest
Alcohorse

Wait… so you’re saying there’s another way?

Inspector_Robert
Guest
Inspector_Robert

printf(“Yeetn”);

ORaygoza
Guest
ORaygoza

print(‘asdfasdfadsfasd’)