POV-Ray : Newsgroups : povray.general : Enabling debug output to console under Windows Server Time
26 Dec 2024 12:23:54 EST (-0500)
  Enabling debug output to console under Windows (Message 1 to 10 of 20)  
Goto Latest 10 Messages Next 10 Messages >>>
From: yesbird
Subject: Enabling debug output to console under Windows
Date: 4 Feb 2023 08:15:00
Message: <web.63de5a03b584c4734ad5859710800fb2@news.povray.org>
Hi,

Can anyone help me to enable debug prints to console under Windows(POV 3.8),
please ?
Spent 2.0 hours trying to find solution, command line options +GA +GD gives
nothing, scene has only one string:

#debug "----------------- DEBUG -----------------------------"

Console output in attachment, thanks in advance.
--
YB


Post a reply to this message


Attachments:
Download 'output.txt' (4 KB)

From: jr
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 08:20:00
Message: <web.63de5b016feb0ae988a828ca6cde94f1@news.povray.org>
hi,

"yesbird" <nomail@nomail> wrote:
> Can anyone help me to enable debug prints to console under Windows(POV 3.8),
> please ?
> Spent 2.0 hours trying to find solution, command line options +GA +GD gives
> nothing, scene has only one string:
>
> #debug "----------------- DEBUG -----------------------------"
>
> Console output in attachment, thanks in advance.

under Linux you need to supply the newline explicitly, ie "string\n".


regards, jr.


Post a reply to this message

From: yesbird
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 08:30:00
Message: <web.63de5ce16feb0ae94ad5859710800fb2@news.povray.org>
> under Linux you need to supply the newline explicitly, ie "string\n".

Thanks, but it's not working for me, unfortunately now I'm tied to Windows by
Matlab license.


Post a reply to this message

From: jr
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 08:45:00
Message: <web.63de60ad6feb0ae988a828ca6cde94f1@news.povray.org>
hi,

"yesbird" <nomail@nomail> wrote:
> > under Linux you need to supply the newline explicitly, ie "string\n".
>
> Thanks, but it's not working for me, unfortunately now I'm tied to Windows by
> Matlab license.

should work, no CLI options needed.  (thinking, platform actually should make no
difference)  however, if you use the 'all_file' option, all (console "#debug")
output should be in that (too).


regards, jr.


Post a reply to this message

From: yesbird
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 09:05:00
Message: <web.63de64f06feb0ae94ad5859710800fb2@news.povray.org>
Hi,

Unfortunately, not, I've tried both:

#debug "----------------- DEBUG -----------------------------\n"
#debug "----------------- DEBUG -----------------------------\r"

and don't set 'all_file' option.
--
YB


Post a reply to this message

From: yesbird
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 09:20:00
Message: <web.63de691f6feb0ae94ad5859710800fb2@news.povray.org>
btw, under Linux works fine.


Post a reply to this message

From: jr
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 09:25:00
Message: <web.63de6a496feb0ae988a828ca6cde94f1@news.povray.org>
"yesbird" <nomail@nomail> wrote:
> btw, under Linux works fine.

curious.  have attached a zip, run (in clean directory) the ini file.  does the
'alltext.out' created not show the '#debug' output? (at least of the first line,
ie '\n' terminated)


regards, jr.


Post a reply to this message


Attachments:
Download 'yb.zip' (1 KB)

From: Bald Eagle
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 09:50:00
Message: <web.63de6ffe6feb0ae91f9dae3025979125@news.povray.org>
You want:


input_file_name = try1.pov
all_file = true
output_file_name = try1
Debug_File=try1.txt


https://wiki.povray.org/content/Reference:Text_Output_Options#Directing_Text_Streams_to_Files


Post a reply to this message

From: yesbird
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 09:55:00
Message: <web.63de71386feb0ae94ad5859710800fb2@news.povray.org>
Hi,
looks like parsing problem:
------------------------------------------------------------------
/* try1 */

#version 3.7;

global_settings {assumed_gamma 1}

box {0,1}

// #declare s_ = "a string to display"; // This works
#declare s_ = "----------------- DEBUG -----------------------------"; // This
not

#debug concat(s_, "\n")

#warning "end-of-file"
------------------------------------------------------------------
--
YB


Post a reply to this message

From: Bald Eagle
Subject: Re: Enabling debug output to console under Windows
Date: 4 Feb 2023 10:05:00
Message: <web.63de73516feb0ae91f9dae3025979125@news.povray.org>
Yep, just get rid of the other stuff and only use:

input_file_name = try1.pov


Debug_File=try1.txt





I'd also replace the #warning with

#error "No objects in scene"

To stop the render phase


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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