Author Topic: [SOLVED]Debugger in gtk+ application  (Read 2986 times)

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
[SOLVED]Debugger in gtk+ application
« 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?
« Last Edit: October 03, 2015, 05:56:08 pm by pineout »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debugger in gtk+ application
« Reply #1 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?
(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!]

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
Re: Debugger in gtk+ application
« Reply #2 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)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debugger in gtk+ application
« Reply #3 on: September 30, 2015, 08:44:46 pm »
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!]

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
Re: Debugger in gtk+ application
« Reply #4 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%.