Matlab does not "Pause on Error"

We are finding that the debug option pause on error (or pause on warning etc) does not stop execution.
A full restart of matlab generally fixes it. However, we are seeing this across all 3 staff using matlab and obviously feels like Matlab is unstable (we are all on trial licenses).
Unfortunately not sure how to reproduce this other than show a screen shot clearly showing "Pause on Error" is enabled and yet, an error has been caught and matlab has returned to the command prompt and cleared the stack.
Thanks, LP
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.3.0.713579 (R2017b)
MATLAB License Number: DEMO
Operating System: Linux 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64
Java Version: Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.3 (R2017b)
Database Toolbox Version 8.0 (R2017b)
Financial Toolbox Version 5.10 (R2017b)
MATLAB Compiler Version 6.5 (R2017b)
MATLAB Compiler SDK Version 6.4 (R2017b)
Optimization Toolbox Version 8.0 (R2017b)
Parallel Computing Toolbox Version 6.11 (R2017b)
Statistics and Machine Learning Toolbox Version 11.2 (R2017b)

댓글 수: 7

Do you mean
dbstop if error
??
LP
LP 2017년 12월 28일
correct
Walter Roberson
Walter Roberson 2017년 12월 28일
Could you post that image showing enabling dbstop if error and then getting the error that is not caught ?
LP
LP 2017년 12월 28일
편집: LP 2017년 12월 28일
Does this suffice?
Trial>> dbstatus
Stop if error.
Stop if warning.
Struct contents reference from a non-struct array object.
Error in AETimeSeries/applyFunctionNeedingTminus1 (line 817)
if lastState(i).mTime(end) < tmp.mTime(1)
Error in AETimeSeries/cumsumNanZero (line 394)
[obj, lastState] = applyFunctionNeedingTminus1(obj, 'applyFunctionToAllFields', @(x) cumsumNanZero(x), varargin{:} );
Error in AETimeSeries/cumsumNanZeroReinsertNan (line 405)
[obj, lastState] = cumsumNanZero(obj, varargin);
Error in unitTestAETimeSeries (line 71)
[tmp,is_out] = tmp.(func)(args{:}, is_out); % ASSUME 1 nargin/nargout
Trial>> dbstatus
Stop if error.
Stop if warning.
Trial>>
LP
LP 2017년 12월 28일
편집: LP 2017년 12월 28일
a
> clear all
> close all
and the program stops as it should.
Error in AETimeSeries/applyFunctionNeedingTminus1 (line 817)
if lastState(i).mTime(end) < tmp.mTime(1)
Error in AETimeSeries/cumsumNanZero (line 394)
[obj, lastState] = applyFunctionNeedingTminus1(obj, 'applyFunctionToAllFields', @(x) cumsumNanZero(x), varargin{:} );
Error in AETimeSeries/cumsumNanZeroReinsertNan (line 405)
[obj, lastState] = cumsumNanZero(obj, varargin);
Error in unitTestAETimeSeriesFunctions (line 71)
[tmp,is_out] = tmp.(func)(args{:}, is_out); % ASSUME 1 nargin/nargout
817 if lastState(i).mTime(end) < tmp.mTime(1)
K>> dbstatus
Stop if error.
Stop if warning.
K>> dbstack
> In AETimeSeries/applyFunctionNeedingTminus1 (line 817)
In AETimeSeries/cumsumNanZero (line 394)
In AETimeSeries/cumsumNanZeroReinsertNan (line 405)
In unitTestAETimeSeriesFunctions (line 71)
In IntervalTimeSeries/calcFXcrossRate (line 249)
In unitTestAETimeSeries (line 23)
K>>
LP
LP 2017년 12월 28일
FYI this is after a complete restart...no rhyme or reason but troubling
Expected one output from a curly brace or dot indexing expression, but there were 2 results.
Error in calcRVfilter (line 91)
tmp_obj.mData.midpoint = rv_rets; % smack right in!
Error in devRVfilter (line 29)
[ws, is_out] = calcRVfilter(ts, config);
Trial>> dbstatus
Stop if error.
Trial>> dbstack
Trial>>
Walter Roberson
Walter Roberson 2017년 12월 28일
Odd. I think you are probably going to need to contact Mathworks for free installation support on this one.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

질문:

LP
2017년 12월 28일

댓글:

2017년 12월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by