Little help with debugging

A little while ago i asked this forum for help with a program that just kept exiting at random points. I was pointed in the direction of debugging.

I now understand a little about debugging but i don't think it can help me with this problem.

Basically when my code breaks it seems that the debugger thinks the program exits legitimately so gives me no information.

Any ideas??? Codeblocks btw.

Cheers
Chris
Exiting at random points probably means it IS ending legitimately. Anyway, you should instead be looking at the values variables have, etc, so that you can find out WHY it is exiting at that point, and then hopefully fix it.
Thanks for the reply.

Yeah the problem with that is my code is roughly 1500 lines. Is there no way i can find out where in the code the program is being told to end 'legitimately'?

Otherwise i'm in for a long night!:)
Post the code somewhere so we can help out.
Using your debugger, stick a breakpoint every hundred lines or so. Run the program under debug and you'll see which debug points are hit and not hit, giving you a much better idea of the exit point(s).
I dont think posting my code will do any good as its for a game im building.
Will try this breakpoint thing thanks moschops.
Topic archived. No new replies allowed.