patchGNU Octave - Patches: patch #8267, Documentation and 'debug-tool'...


patch #8267: Documentation and 'debug-tool' patch.

Submitter:  Lasse Schuirmann <sils1297>
Submitted:  Wed 01 Jan 2014 05:06:46 PM UTC
Category:  Core : new feature Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 01 Jan 2014 05:06:46 PM UTC, original submission:  

This patch introduces
a) a few doxygen comments, so that the doxygen overview is not that empty anymore.
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 runtime-performance.

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


Lasse Schuirmann

Lasse Schuirmann <sils1297>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #30143:  dbgdoc.patch added by sils1297 (44KiB - text/x-patch - The debug_message_settings.h is at the end of the patch; before that there are te implementations for the traces and measurements.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lachlan (Updated the item)
  • -email is unavailable- added by sils1297 (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-07 lachlan CategoryNone Core : new feature
    2014-01-01 sils1297 Attached File- Added dbgdoc.patch, #30143

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code