[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34662] WRONG: `debug_on_error' Flag
From: |
Clem |
Subject: |
[Octave-bug-tracker] [bug #34662] WRONG: `debug_on_error' Flag |
Date: |
Wed, 26 Oct 2011 21:40:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 |
URL:
<http://savannah.gnu.org/bugs/?34662>
Summary: WRONG: `debug_on_error' Flag
Project: GNU Octave
Submitted by: clemwang
Submitted on: Wed 26 Oct 2011 09:40:30 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name: Clem
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: Mac OS
_______________________________________________________
Details:
If you type:
help debug
you get this WRONG info:
`debug_on_error'
Flag whether to enter debug mode in case Octave encounters an
error.
`debug_on_warning'
Flag whether to enter debug mode in case Octave encounters a
warning.
`debug_on_interrupt'
Flag whether to enter debug mode in case Octave encounters an
interupt.
These were flags but now are function that take a boolean argument to turn the
debugging mode on or off. If you actually try to set the flag you get an
error msg:
>> debug_on_error = 1
warning: debug_on_error is now a function instead of a built-in variable. By
assigning to debug_on_error, you have created a variable that hides the
function debug_on_error. To remove the variable and restore the function,
type "clear debug_on_error"
debug_on_error = 1
Also, this err msg is a bit confusing. "debug_on_error is now a function"
could be wrongly interpreted as "your action has just changed debug_on_error
into a function" which is the opposite of what you're trying to inform the
user!
Better would be "Since Octave Version X.X.X, debug_on_error has been changed
from a built-in variable to a function."
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34662>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34662] WRONG: `debug_on_error' Flag,
Clem <=