User forums > Using Code::Blocks

how do I debug in C::B ?

(1/3) > >>

AlexisSorbas:
I am a newbee in C::B, but I know msdev in detail, so my question is: how do I debug in C::B ?
is there a tutorial or is C::B not meant to use for debugging (I don't believe so)

sethjackson:
You want to know how to debug C::B itself? Install RC2. Fetch the source from SVN. Compile the source. Then debug with GDB. :)

thomas:
Thanks for renaming the topic while I was typing...  :lol:


There is exactly one thing you have to know if you want to use the debugger.

--- Use gdb 6.3 ---

If you use the "recommended stable" version 5.2, the you will try and try and try, and you will end up thinking that you are too stupid to use a debugger. The "unstable" version 6.3 is perfectly stable, and it works.

Download the debugger from the MinGW site (we have a link on the Install MinGW page), and unpack it into the same folder where MinGW lives.
Then start Code::Blocks, compile your application with debugging symbols, set any breakpoints that you like and hit the F-9 key... :)

280Z28:

--- Quote from: thomas on December 20, 2005, 05:05:20 pm ---Thanks for renaming the topic while I was typing...  :lol:


There is exactly one thing you have to know if you want to use the debugger.

--- Use gdb 6.3 ---

If you use the "recommended stable" version 5.2, the you will try and try and try, and you will end up thinking that you are too stupid to use a debugger. The "unstable" version 6.3 is perfectly stable, and it works.

Download the debugger from the MinGW site (we have a link on the Install MinGW page), and unpack it into the same folder where MinGW lives.
Then start Code::Blocks, compile your application with debugging symbols, set any breakpoints that you like and hit the F-9 key... :)

--- End quote ---

:( I've been trying and trying and gave up. :(

I have 5.2.1, I'll install 6.3 today and try again.

Urxae:

--- Quote from: thomas on December 20, 2005, 05:05:20 pm ---Thanks for renaming the topic while I was typing...  :lol:


There is exactly one thing you have to know if you want to use the debugger.

--- Use gdb 6.3 ---

--- End quote ---
Wait, that's why I could never get debugging to work properly? :shock:
Installed now, will try if it works later.
Maybe there should be a note about this on the download page, perhaps near the version without MinGW or near the note that win98 users should use 5.2? (Is that still accurate by the way?)


--- Quote ---If you use the "recommended stable" version 5.2, the you will try and try and try, and you will end up thinking that you are too stupid to use a debugger.

--- End quote ---

Yeah, I'd say that's pretty accurate :oops:. Or at least, to use a debugger in C::B.

By the way, is this a problem in gdb or C::B, or maybe just because C::B expects 6.3?

Navigation

[0] Message Index

[#] Next page

Go to full version