you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 1 year ago (10 children)

It drives me crazy that half my coworkers do this, including a senior dev. I'll be on a call trying to help debug something and it makes it so difficult not being able to set a breakpoint

  • source
  • hideshow 10 child comments
  • [–] 30 points 1 year ago (3 children)

    I console.dir and debugger; and breakpoint all day. You are allowed to mix your strategies.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 23 points 1 year ago (2 children)

    console for quick and dirty understanding but inspector for more complex fixes.

  • source
  • parent
  • hideshow 2 child comments
  • I used to do debuggers until I started doing embedded and dipped my feet in multithreading (2 different projects). After many hours lost because the debugger straight lied to me about which line of code has been executed, a colleague suggested that I just do a printf like a filthy beginner. And 🤩it worked🤩 and I never went back to the unreliable world of debuggers. Even though now I'm mostly working with single-threaded python scripts.

  • source
  • parent
  • [–] 3 points 1 year ago (3 children)

    Can you set a breakpoint in production two days ago to debug an incident, though?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (2 children)

    God, I wish. I'd throw money at whoever could implement such a thing. I guess its actually theoretically possible if you just sort of wrote the whole stack to an HDD but the amount of space that would take up lol.

    But yeah, good logging (and not excessive logging!) is also extremely important

  • source
  • parent
  • hideshow 2 child comments
  • There are literally university courses which confidently state "Console logging is far more used and better so we won't talk about a debugger here"!

    Like sure, it's very likely to be used far more, but that doesn't mean you shouldn't at least offer some courses or modules about proper use of a debugger...

  • source
  • parent