You don't know what's wrong, but do you know what's right?
Certainly, there is something that your program should do.
- What should your program do?
- What is the difference between what your program should do, and what it's doing now?
- Explain this difference as best you can. Is it crashing? Is it producing wrong values? Is it an infinite loop? etc.
Use the debugger to trace through the code, watching the contents of variables etc and when what happens deviates from that expected then you're found an issue.