| MATLAB Central > MATLAB Newsreader > "Error using ==> dbstop" |
|
|
|
Hello everybody, |
|
On 25 Jun, 15:58, "Martin " <ro...@mrt.uka.de> wrote: |
|
> Unless the English language has changed over the past |
|
"Martin " <roser@mrt.uka.de> wrote in message <h29n1b$51j$1@fred.mathworks.com>... |
|
> a few thoughts (only) |
|
one addition: |
|
"Martin " <roser@mrt.uka.de> wrote in message <h2a5po$amq$1@fred.mathworks.com>... |
|
In article <h2a5po$amq$1@fred.mathworks.com>, roser@mrt.uka.de says... |
|
Subject: "Error using ==> dbstop" From: Matthew Simoneau Date: 29 Jun, 2009 20:11:01 Message: 9 of 17 |
|
Publishing uses conditional breakpoints to instrument the file being published. That's where these DBSTOP messages are coming from. I don't know why you're seeing this error, though. What version of MATLAB are you running? |
|
"Matthew Simoneau" <matthew@mathworks.com> wrote in message <h2b74l$n7f$1@fred.mathworks.com>... |
|
"us " |
|
Subject: "Error using ==> dbstop" From: Matthew Simoneau Date: 29 Jun, 2009 21:26:42 Message: 12 of 17 |
|
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. |
|
"Matthew Simoneau" <matthew@mathworks.com> wrote in message <h2bbii$j2h$1@fred.mathworks.com>... |
|
Great! I will test this tomorrow! |
|
"Matthew Simoneau" <matthew@mathworks.com> wrote in message <h2bbii$j2h$1@fred.mathworks.com>... |
|
"Martin " |
|
> 3) therefore, to 'reset' LASTERR to the previous value, could do this (nasty) bit |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| g561778 | Matthew Simoneau | 29 Jun, 2009 17:26:42 |
| breakpoints | Matthew Simoneau | 29 Jun, 2009 16:14:09 |
| error | Matthew Simoneau | 29 Jun, 2009 16:14:09 |
| publish | Matthew Simoneau | 29 Jun, 2009 16:14:09 |
| catch | us | 29 Jun, 2009 07:39:04 |
| publish | us | 29 Jun, 2009 07:39:04 |
| try | us | 29 Jun, 2009 07:39:04 |
| code | us | 29 Jun, 2009 07:39:03 |
| dbstop | Martin | 25 Jun, 2009 09:59:13 |
| set breakpoints | Martin | 25 Jun, 2009 09:59:13 |
| compile | Martin | 25 Jun, 2009 09:59:13 |
| error message | Martin | 25 Jun, 2009 09:59:13 |
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com