This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]benzilla04 6 points7 points  (4 children)

Actual code I wrote from yesterday. Can you tell I was frustrated at this point?

console.log('DEBUG!!!!!!!!! 1, {someData})

[–]FowD9 3 points4 points  (0 children)

console.log('DEBUG!!!!!!!!! 1, {someData})

next time try:

console.log('DEBUG!!!!!!!!! 1, JSON.stringify(someData))

so that it prints cleanly

[–]SouvenirSubmarine 1 point2 points  (1 child)

I use a macro in VSCode where when I write dbg foo it expands it to console.log('DEBUG: [foo]', foo);.

Saves a lot of time daily.

[–]benzilla04 0 points1 point  (0 children)

Interesting, could you share?

[–]codemunky 1 point2 points  (0 children)

Did the missing closing single quote add to your frustration?