User forums > Using Code::Blocks
debugging
oBFusCATed:
Does your app reaches the beginning of the main function (put a breakpoint on the first line)?
There is a chance that when run the executable couldn't find all needed dlls.
Also does it start with the run button?
kateausten:
When executed with the run button, the application opens normally.
As I said, it's only when I click on a specific button with my mouse that the application crashes.
If I click on debug/continue without any breakpoints, the application opens normally but I can't click on anything but 'stop debugger' (next line, for instance, is grey).
This is very weird, it seems I have to press on 'stop debugger' twice to make it stop.
I'm awaiting your help because I really don't know what's going on.
oBFusCATed:
Stop button usage:
1. first click/press = pause debuggee (debugged executable)
2. second click/press = stop debugging session
The step/next buttons are active only when the debugger is in paused mode:
1. with the stop button
2. when a breakpoint is hit
kateausten:
hmm...
So how can I basically see what makes my program freeze/stop unexpectedly, and then fix it ?
(My program consists mainly of a while 1 loop).
oBFusCATed:
Maybe you should start from here: http://www.whyprogramsfail.com/
Navigation
[0] Message Index
[*] Previous page
Go to full version