Debugging surely is important and can help in complex scenarios or in a legacy codebase. However I think the ultimate test of your understanding is writing unit tests or even integration tests. In my opinion testing is faster, more efficient and more consistent than just debugging. One should always prefer writing tests where possible over debugging.