|
|
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
|
|