|
|
|
|
|
by draven
1616 days ago
|
|
I stare hard at the code to build a mental image of what it's doing. I then use logs to check if what I think is happening is actually happening (including logging a stack trace when I want to make sure how the program gets there.) I tend to use a debugger when I start to log too many things. It's a sign I should use a debugger to run the code, stop the execution where I'd put the logs and then explore the context and stack trace. I also use Emacs (I'm mainly a Scala dev) and still fire up Intellij for debugging most of the time. |
|