Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pineout on September 29, 2015, 04:20:48 pm

Title: [SOLVED]Debugger in gtk+ application
Post 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?
Title: Re: Debugger in gtk+ application
Post by: oBFusCATed on September 29, 2015, 07:46:23 pm
What do you mean without result?
Have you set any breakpoint in the functions you're interested to inspect?
Title: Re: Debugger in gtk+ application
Post by: pineout on September 30, 2015, 10:40:52 am
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)
Title: Re: Debugger in gtk+ application
Post by: oBFusCATed on September 30, 2015, 08:44:46 pm
Can you post the full debugger log?
You have to enable it in the Settings->Debugger.
Title: Re: Debugger in gtk+ application
Post by: pineout on October 01, 2015, 10:39:29 pm
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%.