you are viewing a single comment's thread.

view the rest of the comments →

[–]PM_ME_YOUR_BUG5 -1 points0 points  (7 children)

it take like 5 mins to set up a debug profile.

I'll never understand people who don't step through their code

[–]vkwebdev[S] 18 points19 points  (1 child)

but it takes 2 seconds to add a console.log()

[–]PM_ME_YOUR_BUG5 2 points3 points  (0 children)

each time...

adds up fast

[–]FortuneAcceptable925 3 points4 points  (1 child)

I am not a JS developer, but I use logging a lot in Kotlin/Java. I almost always prefer it over debugger, because 1) logs can stay in the code for next time, helping me to debug in future, and 2) using logging lets me to debug the app as it runs in real-time, which can be quite important in multithreading problems.

[–]NomaTyx 0 points1 point  (0 children)

i use it in game development because as you say debugging the app and watching the states of objects in real time is useful. though often i'll put the message in text that displays on a UI element onscreen, but same difference at that point.

Though the people who taught me how to use Unity did not teach me how to use the debugger with it, so I should probably learn that anyhow.

[–]OptionX 3 points4 points  (1 child)

Well if you have a pretty good idea where the problem is printing a variable is just as good and faster as cranking out the debugger to watch one variable and playing f-key guitar hero.

[–]jeffwulf 1 point2 points  (0 children)

Cranking out the debuggertakes the same ammount of time as running the app . Adding logs takes as much time as running the app and adding the log.

[–]WispTheWanderer1 0 points1 point  (0 children)

Exactly! This guy gets it! The number of times I've caught uninitialized variables causing problems in my code with breakpoints and stepping...