It’s a good idea to write a question for stackoverflow where you precisely describe your problem. That’s because precisely describing your problem very often leads you directly to the solution. Obviously you are not going to post that question.

It’s a good idea when there is third party code involved that you don’t understand and that is badly documented and you need help from someone who understands it. 

For finding bugs in your code? I would seriously doubt your qualities as a software developer.