Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

debug CodeBlocks

(1/3) > >>

killerbot:
I am trying to debug CB, so I have build CB and done run update.
So in the output directory I am starting up CB (and allowed to be multi instanced). I open up the CB project (new build), and start the debugging sessions (choose src target),
but then i get complaints about the files where I put the breakpoints, it complains that they do not exist. And I get SIGSEGV.

Obviously I am doing something wrong, anyone cna help me out ??

Thanks,
Lieven

rickg22:
after running update, you need to debug the codeblocks.exe in "devel", not "output". :)

killerbot:
Thanks,

It is working now.
But to be honest, it is not such a pleasant journey, it crashes a lot, I think it's the debugger related code.
And I am not able to see what's the data behind the pointers !! So I am in a functio, which for example get pointer to classes as arguments or get's a pointer by calling some Get method, but I only see the address. :-(

Is there a way to see the real data the pointer is pointing to, since as I have it now, this is very hard debugging (nearly useless).

Cheers,
Lieven

rickg22:
Yes, the gdb plugin is buggy. The last time i used it my watches jumped all around, and when editing them suddenly my keyboard would go crazy :(

mandrav:

--- Quote from: killerbot on December 07, 2005, 10:24:36 pm ---Is there a way to see the real data the pointer is pointing to, since as I have it now, this is very hard debugging (nearly useless).

--- End quote ---

Add your watch with a * prepended so that it is dereferenced, e.g. watch "*pMyClass" instead of "pMyClass".


--- Quote from: rickg22 on December 07, 2005, 10:34:09 pm ---Yes, the gdb plugin is buggy. The last time i used it my watches jumped all around, and when editing them suddenly my keyboard would go crazy :(

--- End quote ---

 :shock: :shock: :shock:

Are you talking about the plugin with the latest changes? Because I use it all the time and I 've never experienced such things  :shock:

Navigation

[0] Message Index

[#] Next page

Go to full version