Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: "Error using ==> dbstop"
Date: Mon, 29 Jun 2009 21:43:01 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 6
Message-ID: <h2bch5$jl2$1@fred.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> <MPG.24b27338f102bf719899f2@news.mathworks.com> <h2b74l$n7f$1@fred.mathworks.com> <h2b8a5$cl5$1@fred.mathworks.com> <h2bbii$j2h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246311781 20130 172.30.248.38 (29 Jun 2009 21:43:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 29 Jun 2009 21:43:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:551544


"Matthew Simoneau" <matthew@mathworks.com> wrote in message <h2bbii$j2h$1@fred.mathworks.com>...
> I see what is going on here.  Breakpoints can only go on certain lines in a file, and it's tough to figure out which ones in advance.  When instrumenting the file for publishing, PUBLISH just tries to put them where it wants and catches the occasional errors.  The reason this is changing the state of LASTERROR is because the CATCH isn't requesting the exception as a variable.  To fix this, I just need to change the two lines in matlab/codetools/private/evalmxdom.m from just "catch" to "catch theError".  Using this syntax will prevent it from changing the state of LASTERROR and your code should work fine.

good, problem solved through careful analysis by CSSMers...

us