Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: pineout on September 29, 2015, 04:20:48 pm
-
I debugged for the first time a cmake based application with CB
So I am happy :D
The application uses a gtk interface.
I can debug few code lines before the gtk loop is started using glib.
At that time debugger finishes its work, but I would also like to debug the call back function.
I tried to attach the debugger to the process without result.
Any idea about which way could solve the problem?
-
What do you mean without result?
Have you set any breakpoint in the functions you're interested to inspect?
-
Yes, I set up breakpoints in many call back functions.
1) set up breakpoints (everywhere)
2) start debugger, breakpoints correctly break in the main function
3) debugger exit correctly
4) I attached the debugger to the PID (I didn't know what else to do)
-
Can you post the full debugger log?
You have to enable it in the Settings->Debugger.
-
Sorry, probably I am a dumb, I enabled the debugging log.
Now debugger is not exiting, it is following the child PID without any manual attach, and breakpoints are working at 100%.