POV-Ray : Newsgroups : povray.beta-test : A note on #debug output in v3.7, beta 29 Server Time
25 Dec 2024 22:37:37 EST (-0500)
  A note on #debug output in v3.7, beta 29 (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Kyle
Subject: A note on #debug output in v3.7, beta 29
Date: 12 Dec 2008 09:18:32
Message: <494272b8@news.povray.org>
This is not a major issue, but I figured I'd bring it to attention.

In v3.7, beta 29, a scene file containing only the following statement 
will not write to the message window:

#debug "My Debug Text"

Adding "\n" to the end of the statement, or adding a #debug "\n" 
statement to the end of the scene file will cause the line to be written 
to the message window.

It seems that a final "\n" at the end of the scene file was implied in 
version 3.6, but not in the current beta.


Post a reply to this message

From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 13 Dec 2008 05:11:36
Message: <49438a58$1@news.povray.org>
"Kyle" <no### [at] spamok> schreef in bericht news:494272b8@news.povray.org...
>
> It seems that a final "\n" at the end of the scene file was implied in 
> version 3.6, but not in the current beta.

I experience the same in 3.6. Without "\n" the line is only written when the 
next #debug is met.

Thomas


Post a reply to this message

From: Kyle
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 15 Dec 2008 08:44:07
Message: <49465f27$1@news.povray.org>
Thomas de Groot wrote:
> I experience the same in 3.6. Without "\n" the line is only written when the 
> next #debug is met.

That's odd.  Just to be clear, when I render a file containing only the 
following line in version 3.6 ...

#debug "My Debug Text"

... the text is written to the message window, right after the "Peak 
memory used" message.  The text is not written to the message window in 
version 3.7, beta 29.

So, you're saying that you do not see the text in the message window in 
version 3.6?  What is the exact version that you are using?  Perhaps 
it's different from mine.  I'm testing on version 3.6.1a.icl8.win32.


Post a reply to this message

From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 03:09:45
Message: <49476249$1@news.povray.org>
"Kyle" <no### [at] spamok> schreef in bericht news:49465f27$1@news.povray.org...
>
> So, you're saying that you do not see the text in the message window in 
> version 3.6?  What is the exact version that you are using?  Perhaps it's 
> different from mine.  I'm testing on version 3.6.1a.icl8.win32.

The latest version available: 3.6.1c for Windows.

Thomas


Post a reply to this message

From: Kyle
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 08:33:58
Message: <4947ae46$1@news.povray.org>
Thomas de Groot wrote:
> "Kyle" <no### [at] spamok> schreef in bericht news:49465f27$1@news.povray.org...
>> So, you're saying that you do not see the text in the message window in 
>> version 3.6?  What is the exact version that you are using?  Perhaps it's 
>> different from mine.  I'm testing on version 3.6.1a.icl8.win32.
> 
> The latest version available: 3.6.1c for Windows.
> 
> Thomas
> 
> 

I just installed version 3.6.1c, and the result is the same as in 
version 3.6.1a, the text shows up right after the "Peak memory used" 
message.

Just to reiterate, this is not the case in version 3.7, beta 29.


Post a reply to this message

From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 10:42:46
Message: <4947cc76@news.povray.org>
"Kyle" <no### [at] spamok> schreef in bericht news:4947ae46$1@news.povray.org...
>
> I just installed version 3.6.1c, and the result is the same as in version 
> 3.6.1a, the text shows up right after the "Peak memory used" message.
>
> Just to reiterate, this is not the case in version 3.7, beta 29.

Ah! ok! I just have been blind to the "Peak memory used" note from your 
post. Obviously I have been thinking of something else  :-)

The point is that I use the #debug statement quite a lot in my scenes to 
check the parsing procedure or the output of some parameters during testing. 
As such, I need the message to be written right away, and I had not noticed 
the writing of it at thre end of the render. Sorry for the confusion.

Thomas


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 17:07:49
Message: <494826b5@news.povray.org>
Thomas de Groot wrote:
> The point is that I use the #debug statement quite a lot in my scenes to
> check the parsing procedure or the output of some parameters during
> testing. As such, I need the message to be written right away, and I had
> not noticed the writing of it at thre end of the render. Sorry for the
> confusion.

Just make sure you print a newline at the end.


Post a reply to this message

From: Chambers
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 16 Dec 2008 18:47:28
Message: <C78F717E7F134FCAB39FAD0DAE442E2B@HomePC>
It should be easy enough for POV to output a final newline at the end of
all messages just to clean up things like this.

...Ben Chambers
www.pacificwebguy.com


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 17 Dec 2008 03:40:13
Message: <4948baed@news.povray.org>
Chambers wrote:
> It should be easy enough for POV to output a final newline at the end of
> all messages just to clean up things like this.

Except that you frequently do not want automatic newlines: They prevent 
assembly of longer outputs using multiple debug statements.

	Thorsten


Post a reply to this message

From: Thomas de Groot
Subject: Re: A note on #debug output in v3.7, beta 29
Date: 17 Dec 2008 04:03:44
Message: <4948c070$1@news.povray.org>
"Nicolas Alvarez" <nic### [at] gmailcom> schreef in bericht 
news:494826b5@news.povray.org...
> Thomas de Groot wrote:
>> The point is that I use the #debug statement quite a lot in my scenes to
>> check the parsing procedure or the output of some parameters during
>> testing. As such, I need the message to be written right away, and I had
>> not noticed the writing of it at thre end of the render. Sorry for the
>> confusion.
>
> Just make sure you print a newline at the end.

Yes, that is exactly what I found out. I came across the problem when I 
wanted to show a message about the start and then the end of a particular 
parsing block, and both written on the same line. But both messages only 
appeared together at the end of the block.

Thomas


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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