[vtkusers] how to see debug msg not in a flash

Rasmus Reinhold Paulsen rrp at imm.dtu.dk
Mon Dec 9 13:07:07 EST 2002


Hi Sebastien,

On Mon, 9 Dec 2002, sebastien MARAUX wrote:

> I am debugging an application, 
> and some debug info seems to appear on screen, 
> but just flash to the screen before disappearing : 
> I don't have the time to read anything.
> 
> Is it possible to set the delay of this debug msg display?

A better way is to redirect the output to a file. Add the following in the
start of your application, and the output will be written in the
vtklog.txt file:

// Avoid silly debug window and dump messages to a file
vtkFileOutputWindow *outwin = vtkFileOutputWindow::New();
outwin->SetFileName("vtklog.txt");
outwin->SetInstance(outwin);


Regards,
Rasmus





More information about the vtkusers mailing list