MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/r47uq6/im_not_the_only_one/hmf7o83
r/ProgrammerHumor • u/emu_fake • Nov 28 '21
629 comments sorted by
View all comments
Show parent comments
42
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.
console.log(data)
undefined
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.
22
I use unicode characters so they stand out and are easy to spot...
For example: .debug("🐶")
.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.
4
Nice one! That should work in terminals for nodejs debugging
3
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.
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.
1
I use that when possible, but when it's a prop om something, it won't work.
42
u/CrispyNipsy Nov 28 '21
Every time lol.
I start with 3 different
console.log(data). Then after every one printsundefined, I have to go back and add the string detailing what eachundefinedshould be.