[Insight-users] How to debug
Silviu D Minut
minutsil at cse.msu.edu
Sat, 27 Mar 2004 16:12:04 -0500 (EST)
I successfully compiled Cable, VTK, Insight and InsightApplications. Now I
want to write a simple application of my own. I did compile the HelloWorld
example, but I'd like to know how to debug it, if need be. Normally I use
g++ -g on my Linux box, and I see that -g is an option in ccmake, but how
do I tell ccmake to pass -g to the compiler?
Do I specify the CMAKE_BUILD_TYPE to something like "Debug" and hope that
the -g flag will be passed to the compiler? Would I have to recompile
everything (itk, vtk, etc.) this way?
Thanks!