News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

[SOLVED]Debugger in gtk+ application

Started by pineout, September 29, 2015, 04:20:48 PM

Previous topic - Next topic

pineout

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?

oBFusCATed

What do you mean without result?
Have you set any breakpoint in the functions you're interested to inspect?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

pineout

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)

oBFusCATed

Can you post the full debugger log?
You have to enable it in the Settings->Debugger.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

pineout

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%.