Debugging in any programming is very important. I follow following steps for it:
1- Check issue and analyse it for some time.
2- Before jump to google check core documentation for issue like issue is due to function etc.
Like you are doing coding on Linux and checking on it but issue which raised are on window . May be documentation available for it.
3- Give some time for steps which you taken for debugging.
It will help you for better understanding and from next time it will take less time.
4- Choose dedicated time for issue.
By this time you can focus on that issue without any distraction.
5- If no solution by core documentation then take help of google .
It must not be copy pest solution .By this solution you should learn and think why you thought about it. Most important analyse your steps.
6 – Make your thought process strong by debugging