[Insight-users] itkDebugMacro ITK_LEAN_AND_MEAN DebugOn GDCMImageIO

David Fuentes fuentesdt at gmail.com
Fri Nov 7 10:18:45 EST 2008



looks like you also need to call  Object::DebugOn()



$ITK_SOURCE/Code/Common/itkObject.cxx

/**
  * Turn debugging output on.
  */
void
Object
::DebugOn() const
{
   m_Debug = true;
}



to turn the printing on. Doesn't seem to work with GDCMImageIO though.
Printing is also dependent on

    ::itk::Object::GetGlobalWarningDisplay()

in the itkDebugMacro??


df







On Thu, 6 Nov 2008, Bill Lorensen wrote:

> itkDebugMacro is disabled if any of the following are defined:
> #if defined(ITK_LEAN_AND_MEAN) || defined(__BORLANDC__) || defined(NDEBUG)
>
> NDEBUG is only defined for Release.
>
> Bill
>
> On Thu, Nov 6, 2008 at 1:42 PM, David Fuentes <fuentesdt at gmail.com> wrote:
>>
>> thanks Bill,
>>
>> I'll double check. I'm using:
>>
>>
>> RedHat Linux 2.6.18-53.1.6.el5 #1 SMP x86_64
>>
>> gcc 4.1.2
>>
>>
>>
>>
>> On Thu, 6 Nov 2008, Bill Lorensen wrote:
>>
>>> It should show up with RelWithDebInfo. What platform/compiler are you
>>> using?
>>>
>>> On Thu, Nov 6, 2008 at 1:12 PM, David Fuentes <fuentesdt at gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> thanks Bill,
>>>>
>>>>
>>>> is it written to stdout on your machine?
>>>> what about RelWithDebInfo?
>>>>
>>>>
>>>> df
>>>>
>>>>
>>>>
>>>> On Thu, 6 Nov 2008, Bill Lorensen wrote:
>>>>
>>>>> You should see the output in Debug mode, but not Release. Unless you
>>>>> are using the Borland compiler.
>>>>>
>>>>> Bill
>>>>>
>>>>> On Thu, Nov 6, 2008 at 11:12 AM, David Fuentes <fuentesdt at gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> How do you enable the itkDebugMacro?
>>>>>> I have ITK 3.8.0 compiled in debug mode
>>>>>> and am expecting output from
>>>>>>
>>>>>>  itkDebugMacro
>>>>>>
>>>>>> but am Not seeing any?
>>>>>>
>>>>>>
>>>>>>
>>>>>> thank you,
>>>>>> df
>>>>>> _______________________________________________
>>>>>> Insight-users mailing list
>>>>>> Insight-users at itk.org
>>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>>
>>>>>
>>>>
>>>
>>
>


More information about the Insight-users mailing list