Debug mode

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
aliirmak
Posts: 44
Joined: Tue Sep 04, 2007 2:57 pm
Location: PU,West Lafayette, IN

Debug mode

Post by aliirmak »

Hi everybody,

I want to debug & see what is happening at some specific events during run time. For that thing, i will use either gdb or ddd.

Yet still i did't understand how I should compile opensees (for linux of course) to make the program available for debugging.

Could you help me where and how should i insert the -g flag (in makefile or makedefinition)

Thanks in advance.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

in the C and C++ flags remove the -O or -O2 and place the -g
aliirmak
Posts: 44
Joined: Tue Sep 04, 2007 2:57 pm
Location: PU,West Lafayette, IN

Post by aliirmak »

Would that affect the results i got?
hellojikir
Posts: 10
Joined: Tue Apr 15, 2008 6:38 am

Post by hellojikir »

:D :D :D :D






ImageImageImageImageImageImageImageImageImageImage
Post Reply