Can i ask, if how can i avoid too much time in debugging?
How can i make my debugging faster? what is the best practice?

by using a decent debugging tool.
but, the best way to avoid many of debugging is to pay attention when you are writing the original code.

its most likely paying attention while coding.
Thank you sir for a wnderful remark.

well, you say "it's most likely", but trust me, that's never a guarantee.

Ok, But at Least i can try it.