Reducing your problem is an excellent debugging skill to have; the benefits are twofold: (1) you can often figure out the problem yourself and (2) you can state the problem in more concise terms when asking for help.
To reduce your problem, remove code that isn't directly related to the issue at hand until you've got the smallest possible program which demonstrates the problem.
To reduce your problem, remove code that isn't directly related to the issue at hand until you've got the smallest possible program which demonstrates the problem.