DEV Community

Discussion on: What is your debugging approach?

Collapse
 
tuwang profile image
TuWang

Oh, of course, Ststem.out.println and chase the shit out of the bug like crazy ;)

True story tho: rather than adding breakpoint everywhere, I’m more towards to analyzing the business logic and identify the expected/unexpected results, unfortunately with a brutal print.

I developed this habit when working on a few production projects and live-debugging through the pages of logs.

In production, there is no debugger or any intuitive tools (not usually), but just layers of logs to dig into.

I practice my production debugging habit in daily coding task. It’s not as effective as utilizing a debugger, but it keeps my brain running ;)