Bad variable names and then awful "temporary" log lines... I feel attacked this morning. ;)
post
replies:
This is a professional debug techique, what are you talking about? But I rather use 'Hii' with various (but not ascending) amounts of i's.
replies:
permalink
fedilink
source
parent
hideshow 1 child comment
permalink
fedilink
source
parent
Sometimes I use various swears. Depends on how long I've had to debug. Also depends on whose work I'm debugging and whether they're in earshot. Usually it's just my own sketchy code though.
I've used a regex to add a console log to the top of every method with the method name before.
the things you do when you're desperate.
var num =0
...
console.log("Here " + num++)
...
console.log("Here " + num++)
all 14 comments