This. In fact a lot of what I do are guesses. And then check whether it works. I think if you don't work like this you will be completely paralyzed to achieve anything.
[1] By reading more of the code, RTFM, observing logs, tracing with a debugger, varying inputs, etc.