2

Saw my colleague debugging. He's got a try-catch, then I asked, "Why aren't you logging the stack trace?". He answered, "I don't cause it will be a security risk". So there he was having a hard time debugging.🤯
Can you guys confirm if what he said is true?

Comments
  • 0
    What's his reasoning for thinking it's unsafe?
  • 0
    @Elyz Unless he's debugging in production or wherever he's debugging has open access from outside, I dunno.
  • 1
    Logging the stack trace as an automated Facebook status update would be unsafe. Writing it to disk in some way that only you guys have access to is fine. Sounds like inexperience (or ignorance) to me.
  • 1
    wouldn't be easier if you ask the guy for an explanation to that reasoning?
Add Comment