octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More debug information


From: Shai Ayal
Subject: Re: More debug information
Date: Sun, 26 Oct 2008 06:34:38 +0200

On Sun, Oct 26, 2008 at 5:09 AM, John Swensen <address@hidden> wrote:
> Is there anyway to make Octave warnings more verbose, or to make a debugger
> like GDB break on warnings also.  As I am working with the OpenGL rendering
> and text objects, I am getting a warning and I cannot find where the source
> is.  When using the Gnuplot backend the warning does not appear.
>
> octave:2> text(0,0,"ABCD")
> octave:3> error: octave_base_value::convert_to_str_internal (): wrong type
> argument `struct'
> warning: opengl_renderer: cannot render object of type `text'
>
> I have tried tracing the entire call path from when a text object is
> created, but I can't figure out where the error message is coming from,
> other than recognizing it is probably somewhere where string_value() is
> called.  How do the octave maintainer experts find where errors like this
> occur?

a rather crude method would be to grep for "opengl_renderer: cannot
render object of type" in the entire source tree. However,
opengl_renderer is all contained within the files gl-renderer.{c,h} so
it's easier to just grep them ...
with GDB, you just have to set a breakpoint in the warning/error
function of octave (grep for them ...)

Shai


reply via email to

[Prev in Thread] Current Thread [Next in Thread]