waratte wrote:I was referring to methods that help you find errors without a debugger.
I didn't mention a "debugger" anywhere, did I? Anyway, best option is to use GDB to debug, it's there for a reason. Also you have alternative methods, such as printing (on the screen and/or file and/or psplink). And why not use a debugger, are you afraid of it?
waratte wrote:Copy and remove the return statement at the end of your main. Add it to the beginning of your while loop. Compile and run the eboot on your psp. Wait a few seconds and press down the home key(on the psp). If that grey "exit game" screen appears, then your code works until that point. Go back to your code and move the return statement down one time. Run your new code. Check to see if the grey screen appears again. If it doesn't, the line above your return statement may be the line that crashes the programme. Otherwise, keep doing this until it stops working. When it stops working, the line above the return statement may be the line that breaks the code. I would have tried to do this myself but, you are including files that aren't on my computer.
Really awful and slow method. Better do some output or better yet use PSPLINK and GDB.