User forums > General (but related to Code::Blocks)

Can't debug in CB

<< < (2/3) > >>

Shane:
I still don't know ho to point C::B to my debug directory with the debug symbols.  Can anyone help me out on that?  Where do I place the gdb command line option at?  I've tried a number of places and it is still using my currect directory where the project file is as the base directory.

Shane:
Got it.  To specify the symbol file you want loaded you have to use a GDB command and not the program argument.  Example:

file /home/user/Debug/bin/File_I_am_debugging

I could not find a why to pass an argument to GDB within CB only GDB commands.

Thanks.

Joerg:

--- Quote ---Got it.  To specify the symbol file you want loaded you have to use a GDB command and not the program argument.  Example:
file /home/user/Debug/bin/File_I_am_debugging
--- End quote ---
thats interesting,
AFAIK C::B passes to GDB the file specified under
Project/Properties/Build targets/ Output filename ?

Shane:
My bad, it works, I was debugging a library without debugging symbols.

Thanks for your help.

Miro1701:
Hi.

I have same problem.  I use two projects Dynamic Library and Console Application. I have compiled them with "Produce Debugging Symbol".
I need debugger because i had segmentation fault and i can't find error without debugger.


--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /home/miroslav/Development/Games/Examples/
Adding source dir: /home/miroslav/Development/Games/Examples/
Adding file: bin/Debug/Examples
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 (GDB) 7.0-ubuntu
Continuing...
The program is not being run.
Debugger finished with status 0
--- End code ---

Thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version