[Insight-users] How to use gdb -g to debug C++ programms using itk in Linux?

Luis Ibanez luis.ibanez at kitware.com
Sat Feb 7 11:47:07 EST 2009


Hi 李健

Simply rerun CMake,

and in the variable "CMAKE_BUILD_TYPE" write "Debug"

then
type "c" to configure and
type "g" to generate

At that point the Makefiles generated by CMake will
include the -g flag.


  Regards,


     Luis


---------------
李健 wrote:
> Dear all:
>  
> In order to display the values and types of varialbes using gdb during 
> debugging, we need to use -g option, but when we use ccmake and itk, how 
> can we use -g option during debugging?
>  
> Thanks a lot.
> 
> 
> ------------------------------------------------------------------------
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list