POV-Ray : Newsgroups : povray.windows : Can I set breakpoint in the codes to debug? : Re: Can I set breakpoint in the codes to debug? Server Time
19 May 2024 09:44:50 EDT (-0400)
  Re: Can I set breakpoint in the codes to debug?  
From: Jack
Date: 19 Dec 2007 07:15:00
Message: <web.47690a29e53c0624dc6489f80@news.povray.org>
Thanks! I'll try and read the documentation carefully.
Alain <ele### [at] netscapenet> wrote:
> Jack nous apporta ses lumieres en ce 2007/12/17 07:52:
> > I am a new-user and met some problems when using POV-ray. I use Version 3.6.1
> > for Windows. Here are the problems:
> > 1,After the rendering, how to direct the POV-Ray text output streams to a file?
> > 2,After the rendering, I click 'View histogram image file' in the 'Tools' menu,
> > but it says 'No file to open'. How can I deal with this problem? Thanks!
> You need to explicitely enable the generation of the histogram. It's never on by
> default.
> > 3,How to smart-indent the .pov file to clearly show the source codes in the
> > loops and #if-else-end. For example, I copy some source codes in the tutorial
> > to the pov 'editor window', but they are in a mess, and difficult to read and
> > knew which loops the codes belong to. So I want to select them all and
> > smart-indent them. Is there any ways I can deal with this question? Thanks!
> Menu|Editor|Preferances... Second tab (Language/Tabs). check "Copy from previous
> line!
> In the same location, you can set the tab spacing and if you want tabs to be
> replaced by spaces.
> Also, if you select several lines and hit the Tab key, all selected lines have a
> tab inserted at the beggining.
> > 4,How to set breakpoint in the codes to debug? Thanks!
> Place #debug statements at strategic locations. Enclocing them in #if statements
> permit you to enable/disable them by setting a single variable: #declare Debug = 1;
> > 5,How to check the variable's value after the rendering? Thanks!
> Use #debug at the end of the source file where you output the variables that
> interest you. After the parcing is completed, all the variables have ther final
> values that don't change during the rendering itself.
> You can check the values while the rendering is in progress.
> >
> >
> Please read carefully the documentations that get installed with POV-Ray.
>
> --
> Alain
> -------------------------------------------------
> Keep your eyes wide open before marriage, half shut afterwards.
> Benjamin Franklin


Post a reply to this message

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