Re: Debugger won't stop?
- From: "Nick Koch" <nickkoch@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Oct 2005 16:49:00 -0400
Steven Lord wrote:
>
>
>
> "Nick Koch" <nickkoch@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:ef19372.-1@xxxxxxxxxxxxxxxxxxx
>> Every once in a while, my M-editor (debugger) won't stop when I
> tell
>> it to. This occurs only when I have multiple functions open
where
>> one funtion called a secondary function that is also open. If I
>> place a stop point in any currently selected window, the
debugger
>> actually will stop, but if I place a stop point in any window
> whose
>> tab is not selected, the stop point will be ignored.
>>
>> The work around I've been using is to insert a stop point in
the
>> window where the secondary function is called. The debugger
will
>> stop there. Then, I have to switch to the secondary window and
>> insert a stop point and select to continue run from that
window.
> If
>> I go back to the primary window and select run from there, the
> stop
>> point will again be ignored.
>>
>> So, why does the stop point have to be in the currently
selected
>> window for it to be recognized?? This only happens some of the
> time,
>> and it's driving me crazy!
>
> Do you have a CLEAR ALL statement anywhere inside the first
> function you
> call? If so, you should realize that statement will clear
> breakpoints:
>
> <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/clear.html>
>
> --
> Steve Lord
> slord@xxxxxxxxxxxxx
>
>
>
Steve,
That's it! I do run a "clear all, close all, clc" before I run the
first script that calls the later functions. I commented that line
out and the debugger now stops in the later functions. Tricky! I'll
have to watch that because the breakpoints after the "clear all" in
the script currently viewed are actualy not cleared.
Thanks for solving a nagging issue!
Nick
.
- References:
- Debugger won't stop?
- From: Nick Koch
- Re: Debugger won't stop?
- From: Steven Lord
- Debugger won't stop?
- Prev by Date: I need help for serial port object on a GUI
- Next by Date: Re: dramatic increase of computation time caused by a for-loop
- Previous by thread: Re: Debugger won't stop?
- Next by thread: Problems in Writing data to a Text file
- Index(es):
Relevant Pages
|
Loading