News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to use the debugger ?

Started by Didier69, October 07, 2006, 01:23:48 PM

Previous topic - Next topic

Didier69

Hi,

I'm under windows xp with C::B nightly build of the 05 October 2006. I use mingw and I have installed gdb. I would like to use breakpoints in C::B. I have registered two breakpoints and here is the errors I have:

Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: C:\Documents and Settings\dbretin\Mes documents\CB projects\little_timelog\
Adding source dir: C:\Documents and Settings\dbretin\Mes documents\CB projects\little_timelog\
Adding file: .\timelog.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 5.2.1
No source file named C:/DOCUME~1/dbretin/MESDOC~1/CBPROJ~1/LITTLE~1/src/main.cpp.
No source file named C:/DOCUME~1/dbretin/MESDOC~1/CBPROJ~1/LITTLE~1/src/dirlist/cdirlist.cpp.
Program exited with code 03.
Debugger finished with status 0


The application is launched then stopped at the end. It doesn't stop at my breakpoints.

Did I forget something ?

Regards.

thomas

QuoteDebugger name and version: GNU gdb 5.2.1
That's it :)

Use gdb 6.3 and you will be fine.


http://wiki.codeblocks.org/index.php?title=Mingw#gdb_debugger
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Didier69

Thanks a lot. I searched in the forum, but not in the wiki ;). Is the user documentation uptodate ?

Regards.

thomas

Hmmm... I am not aware of any documentation to the debugger at all ;)

The WiKi page I linked to is the page that lists all the downloads from Sourceforge to install a recent, working system (including compiler, debugger, and almost every other tool you'll need). That page is always held up to date (checked bi-weekly).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

I_want_to_be_free

Help Wanted!
One issue!
First ,please forgive my poor English,it may make it a little difficult to get my words.
When I finished my code words,I try to use the Step Over to debug it line to line,but it didn't work as usual.And it show that the debugging was over.I don't know how to set it back.I guess there is something  I don't know got changed.
I am eager to your help!

Quiss

Use "Next line", not "Step over".