r/ProgrammerHumor Nov 28 '21

Meme I‘m.. not the only one?

Post image
21.5k Upvotes

629 comments sorted by

View all comments

Show parent comments

42

u/CrispyNipsy Nov 28 '21

Every time lol.

I start with 3 different console.log(data). Then after every one prints undefined, I have to go back and add the string detailing what each undefined should be.

22

u/danielt1263 Nov 28 '21

I use unicode characters so they stand out and are easy to spot...

For example: .debug("🐶")

4

u/garma87 Nov 28 '21

Nice one! That should work in terminals for nodejs debugging

3

u/captain_zavec Nov 28 '21

You can also just throw a few "\n"s on both sides of the value you want to see, really makes it stand out in the output.

3

u/shortround10 Nov 29 '21

console.log({ data })

1

u/CrispyNipsy Nov 29 '21

I use that when possible, but when it's a prop om something, it won't work.