octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49119] libinterp/corefcn/debug.cc-tst unit te


From: Rik
Subject: [Octave-bug-tracker] [bug #49119] libinterp/corefcn/debug.cc-tst unit tests cause several files to open in GUI editor
Date: Tue, 3 Jul 2018 13:54:53 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #16, bug #49119 (project octave):

Correct.  There is no preference today, but I wanted to see if one could be
added on the GUI thread side.

Otherwise, we can add a new preference variable on the interpreter side. 
Should it be an internal setting (one with '__' prefix)?

For a template, see debug_on_error in error.cc


// TRUE means that Octave will try to enter the debugger when an error
// is encountered.  This will also inhibit printing of the normal
// traceback message (you will only see the top-level error message).
bool Vdebug_on_error = false;


and later


DEFUN (debug_on_error, args, nargout,
       doc: /* -*- texinfo -*-
@deftypefn  {} address@hidden =} debug_on_error ()
@deftypefnx {} address@hidden =} debug_on_error (@var{new_val})
@deftypefnx {} {} debug_on_error (@var{new_val}, "local")
Query or set the internal variable that controls whether Octave will try
to enter the debugger when an error is encountered.

This will also inhibit printing of the normal traceback message (you will
only see the top-level error message).

When called from inside a function with the @qcode{"local"} option, the
variable is changed locally for the function and any subroutines it calls.
The original variable value is restored when exiting the function.
@seealso{debug_on_warning, debug_on_interrupt}
@end deftypefn */)
{
  return SET_INTERNAL_VARIABLE (debug_on_error);
}


So we could have a Vdo_gui_breakpoints variable in octave-link.cc, move the
breakpoint routines out of the .h file and in to the .cc file, and then
condition calling through to octave_link based on this variable.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49119>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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