Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: "Error using ==> dbstop"
Date: Mon, 29 Jun 2009 07:44:45 -0400
Organization: The MathWorks
Lines: 70
Message-ID: <MPG.24b27338f102bf719899f2@news.mathworks.com>
References: <h1vvp9$e75$1@fred.mathworks.com> <4a659c20-07f7-421f-b010-1d7aca2078f6@j19g2000vbp.googlegroups.com> <h29n1b$51j$1@fred.mathworks.com> <h29ubm$kfs$1@fred.mathworks.com> <h2a5po$amq$1@fred.mathworks.com>
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1246275885 267 172.31.57.206 (29 Jun 2009 11:44:45 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 29 Jun 2009 11:44:45 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:551365


In article <h2a5po$amq$1@fred.mathworks.com>, roser@mrt.uka.de says...
> > a few thoughts (only)
> > - did you recently edit one of the files...
> > - did you MLINT your files to look for (minute) errors, eg, END/RETURN mismatches...
> > - how do you set the CATCHERROR option in publish...
> > - which ML version do you use...
> 
> Hi us,
> thank you for your fast reply. 
> - MLINT does not find any errors.
> - CATCHERROR=true
> - I use MATLAB 7.8.0 (R2009a)
> 
> I created a simple example that will throw the error. I have no idea why the example below won't work!!!
> 
> 1) the code I want to test:
> 
> function test()
> a=1;
> b=2;
> fprintf('a+b=%d\n',a+b)
> end
> 
> 2) my evaluation code:
> 
> function evaluateTest()
> clear all,close all,clc;
> mFile='test.m'
> opts.outputDir = fullfile('.');
> opts.catchError=true
> [MLINTinfo]=mlint(mFile)
> publish(mFile, opts);
> checkErrors=lasterror;
> message = checkErrors.message
> if(~isempty(message))
>     fprintf('\nThere is an ERROR!\n');
> end
> 
> 3) evaluateTest() produces following output:
> 
> mFile =
> test.m
> opts = 
>      outputDir: '.'
>     catchError: 1
> MLINTinfo = 
> 0x0 struct array with fields:
>     message
>     line
>     column
> message =
> Error using ==> dbstop
> You can not set a breakpoint past the start of the last
> expression in the file.
> 
> There is an ERROR!
> 
> 
> Best regards,
> Martin
> 

This all seems very mysterious.  Please contact technical support to 
help solve this:

http://www.mathworks.com/support/contact_us/index.html

-- 
Loren
http://blogs.mathworks.com/loren