POV-Ray : Newsgroups : povray.beta-test : #debug message problem re: line breaks : Re: #debug message problem re: line breaks Server Time
20 Apr 2024 09:25:43 EDT (-0400)
  Re: #debug message problem re: line breaks  
From: Le Forgeron
Date: 18 Jul 2017 11:29:04
Message: <596e2940$1@news.povray.org>
Le 18/07/2017 à 16:07, Bald Eagle a écrit :
> Kenneth,
> If you search around, you will find reference to the fact that the text output
> to the debug stream does not get displayed until a new line of some sort is
> encountered.
> Presumably each new debug statement starts it's own line, which flushes the
> previous pending message to the output.
> It's good practice to always end some sort of text output with a "\n"
> I too, used to wonder "Where did my debug output go???"
> 
> If there was true aliasing (of commands), then you could probably do something
> like
> alias debug debug %1 "\n"
> or whatever the unix-style command line syntax is
> 
> Perhaps invoking a #debug messaging macro that always adds a "\n" at the end
> would work, if that's helpful at all...
> 

But doing so would break code that have a lot of complex thing to trace
in debug and use multiple #debug to build the various part of the
message (as opposed to using a single concat() for everything at once)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.