[Insight-users] How to redirect debug output on Windows or cygwin?

Luis Ibanez luis . ibanez at kitware . com
Mon, 24 Jun 2002 11:34:03 -0400


Hi Jarek,

You may want to try:

   itk::OutputWindow::SetInstance(itk::TextOutput::New().GetPointer());

before sending any output.


This is used in the tests in: Insight/Testing/Code/Algorithms/

itkCurvatureFlowTest.cxx
itkFastMarchingTest.cxx
itkImageRegistrationMethodTest_13.cxx
itkImageRegistrationMethodTest_14.cxx
itkImageRegistrationMethodTest.cxx
itkMultiResolutionImageRegistrationMethodTest_1.cxx
itkMultiResolutionImageRegistrationMethodTest_2.cxx
itkMultiResolutionImageRegistrationMethodTest.cxx
itkRegionGrow2DTest.cxx


Regards,


   Luis

============================================

Jarek Sacha wrote:

> Is there a way to redirect debug output?
> In particular, when running on Windows using either VC++ or cygwin, the
> debug information is displayed in a separate window that disappears when
> program exits. I would like to be able to simply print debug information
> to standard output (that is the same way std::cout is printing). Is there
> a way to reconfigure debug to do this?
> 
> Thanks,
> 
> Jarek
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
> 
>