[Insight-users] a question about debugging itk

qing xu qingxu8 at hotmail.com
Thu Aug 16 10:37:03 EDT 2007


Hi Luis,

I figured out the reason. I should set my application to let it find all the 
temporary files along with the library. Yesterday, there are only *.lib in 
the library path of my application. Today, I also copied all the temporary 
files(*.pdb...) into the library path, then the debuging works.

Qing


>From: "qing xu" <qingxu8 at hotmail.com>
>To: luis.ibanez at kitware.com
>CC: insight-users at itk.org
>Subject: Re: [Insight-users] a question about debugging itk
>Date: Thu, 16 Aug 2007 13:49:43 +0000
>
>Hi Luis,
>
>Thank you for your help. I compiled both ITK and my application in debug 
>mode. It still does not work.
>
>For itk, I simply configued using cmake and get ITK.dsw. Then I opened 
>"ITK.dsw" and choose "All_bulid" project to bulid all in "All_Bulid Win 32 
>Debug". The generated lib files are then copied to another folder, which my 
>application can import .lib from.
>
>For my application, I did not configure using cmake, just set all the 
>necessary path and imported lib in VC 6.0.
>
>In the workspace of my application, I opened the source files and set 
>breakpoints. For *.txx and *.h, it works. But for *.cxx, the breakpoints 
>are disabled when the program run.
>
>Do you have any suggestion? Thanks.
>
>Qing
>
>
>
>
>>From: Luis Ibanez <luis.ibanez at kitware.com>
>>To: qing xu <qingxu8 at hotmail.com>
>>CC: sean at rogue-research.com,  insight-users at itk.org
>>Subject: Re: [Insight-users] a question about debugging itk
>>Date: Wed, 15 Aug 2007 18:41:48 -0400
>>
>>
>>Hi Qing,
>>
>>If you compiled *BOTH* ITK and your application in Debug mode, you can
>>simply open the ITK file that you want to debug and set the break point
>>in it, then run your application with "F5".
>>
>>   1) Did you compile ITK in Debug mode ?
>>
>>   2) Are you using CMake for configuring your application ?
>>
>>
>>
>>Please let us know
>>
>>
>>     Thanks
>>
>>
>>        Luis
>>
>>
>>------------------
>>qing xu wrote:
>>>I forgot to mention that I am using VC 6.0 on windows XP. I imports itk 
>>>as static library. Does anybody know a way to debug the source code of 
>>>ITK. Thanks.
>>>
>>>Qing
>>>
>>>
>>>>From: "Sean McBride" <sean at rogue-research.com>
>>>>To: "qing xu" <qingxu8 at hotmail.com>, <insight-users at itk.org>
>>>>Subject: Re: [Insight-users] a question about debugging  itk Date: Wed, 
>>>>15 Aug 2007 17:50:44 -0400
>>>>
>>>>On 8/15/07 9:35 PM, qing xu said:
>>>>
>>>> >I am trying to put breakpoints in the itk source code in order to to 
>>>>see how
>>>> >the algorithm works. It seems that I can debug *.h and *.txx, But I 
>>>>can not
>>>> >debug *.cxx, since they are inside the *.lib. Does anyone know a 
>>>>convient
>>>> >way to set breakpoints in *.cxx? Thanks a lot.
>>>>
>>>>Help us help you.  Which OS?  Which IDE?  etc.
>>>>
>>>>--
>>>>____________________________________________________________
>>>>Sean McBride, B. Eng                 sean at rogue-research.com
>>>>Rogue Research                        www.rogue-research.com
>>>>Mac Software Developer              Montréal, Québec, Canada
>>>>
>>>>
>>>
>>>_________________________________________________________________
>>>Now you can see trouble…before he arrives 
>>>http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>
>_________________________________________________________________
>See what you’re getting into…before you go there 
>http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users

_________________________________________________________________
Booking a flight? Know when to buy with airfare predictions on MSN Travel. 
http://travel.msn.com/Articles/aboutfarecast.aspx&ocid=T001MSN25A07001



More information about the Insight-users mailing list