[Top][All Lists]

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

[Octave-patch-tracker] [patch #8267] Documentation and 'debug-tool' patc

From: Lasse Schuirmann
Subject: [Octave-patch-tracker] [patch #8267] Documentation and 'debug-tool' patch.
Date: Wed, 01 Jan 2014 17:06:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0


                 Summary: Documentation and 'debug-tool' patch.
                 Project: GNU Octave
            Submitted by: sils1297
            Submitted on: Wed 01 Jan 2014 05:06:46 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



This patch introduces
a) a few doxygen comments, so that the doxygen overview is not that empty
b) the debug_message_settings.h which contains a 'Macro-composition' for
managing debug outputs so you can toggle different debug-output-types. I
preconfigured some of them in order to get to know the parse and eval system
of octave. - I think this may help other persons too.

This may be helpful for
b.1) Debugging.
b.2) Getting to know the octave code.

You can now go into ./liboctave/util/debug_message_settings.h , take a look at
the comments and change the value of VERBOSE in line 52 to one of the
specified values below (or above in the comments.)

 * Currently supported types are:
 * - NONE
 * - PARSE_TRACE (Partially implemented)
 * - PARSE_DBG (Not implemented)

You can easily concat several options via the | operator.


The parse trace will e.g. look as follows:

 >> x = 1
 [DBG][PTR] Found identifier.
 [DBG][PTR] Found simple expression.
 [DBG][PTR] Found numeric constant.
 [DBG][PTR] Found simple expression.
 [DBG][PTR] Found assign expression.
 [DBG][PTR] Found expression.
 x =  1

If you define VERBOSE as NONE this patch will have no effect on the

I hope this is helpful and I'd appreciate any feedback.


Lasse Schuirmann


File Attachments:

Date: Wed 01 Jan 2014 05:06:46 PM GMT  Name: dbgdoc.patch  Size: 44kB   By:
The debug_message_settings.h is at the end of the patch; before that there are
te implementations for the traces and measurements.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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