Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
unable to debug

Subject: unable to debug

From: Gerrit Van Damme

Date: 18 May, 2010 12:17:05

Message: 1 of 8

Dear all,

I'm trying to debug a m-file but I'm unable to do this.
When I set a breakpoint in the Matlab Editor. The red dot is placed in the margin but is directly removed again. I've looked everywhere but can't find any info on this problem.
Any of you guys has an idea?

Regards,

Gerrit

Subject: unable to debug

From: Sean

Date: 18 May, 2010 12:26:04

Message: 2 of 8

"Gerrit Van Damme" <gvd@mgb-tech.com> wrote in message <hsu0g1$om6$1@fred.mathworks.com>...
> Dear all,
>
> I'm trying to debug a m-file but I'm unable to do this.
> When I set a breakpoint in the Matlab Editor. The red dot is placed in the margin but is directly removed again. I've looked everywhere but can't find any info on this problem.
> Any of you guys has an idea?
>
> Regards,
>
> Gerrit

One possibility is that you're already in debug mode.
>> dbquit %maybe a few times
Then try it.

Subject: unable to debug

From: Gerrit Van Damme

Date: 18 May, 2010 12:34:04

Message: 3 of 8

Thanks Sean for the fast response but it's not working.

greets,

Gerrit

>> dbquit
??? Error using ==> dbquit
Debugging commands are only allowed in debug mode.

Subject: unable to debug

From: Walter Roberson

Date: 18 May, 2010 14:08:26

Message: 4 of 8

Gerrit Van Damme wrote:

> I'm trying to debug a m-file but I'm unable to do this.
> When I set a breakpoint in the Matlab Editor. The red dot is placed in
> the margin but is directly removed again. I've looked everywhere but
> can't find any info on this problem.

Removed as soon as you click to place it? That could occur if the
routine is already executing. Removed as soon as you start the routine?
That would occur if you have 'clear all' or some other 'clear' statement
in the routine.

Subject: unable to debug

From: Gerrit Van Damme

Date: 18 May, 2010 15:30:05

Message: 5 of 8

Walter Roberson <roberson@hushmail.com> wrote in message <ubxIn.11216$wV.1151@newsfe11.iad>...
> Gerrit Van Damme wrote:
>
> > I'm trying to debug a m-file but I'm unable to do this.
> > When I set a breakpoint in the Matlab Editor. The red dot is placed in
> > the margin but is directly removed again. I've looked everywhere but
> > can't find any info on this problem.
>
> Removed as soon as you click to place it? That could occur if the
> routine is already executing. Removed as soon as you start the routine?
> That would occur if you have 'clear all' or some other 'clear' statement
> in the routine.

It's removed as soon as I click to place it.
Thing is nothing is executing at that moment...
Is there a killall command?

Subject: unable to debug

From: Walter Roberson

Date: 18 May, 2010 15:42:04

Message: 6 of 8

Gerrit Van Damme wrote:

> It's removed as soon as I click to place it.
> Thing is nothing is executing at that moment...
> Is there a killall command?

Yes, it is called

quit

;-)

Subject: unable to debug

From: Gerrit Van Damme

Date: 19 May, 2010 08:15:23

Message: 7 of 8

Even when I just start Matlab I'm experiencing this behavior...

Subject: unable to debug

From: Yonathan Nativ

Date: 24 Jun, 2010 12:35:25

Message: 8 of 8

"Gerrit Van Damme" <gvd@mgb-tech.com> wrote in message <ht06mr$qej$1@fred.mathworks.com>...
> Even when I just start Matlab I'm experiencing this behavior...

hi geritt, I'm experiencing the exact same problem (brake points appear for a sec and immediately vanish), how did you ovecome this problem?

thanks,

yonathan

Tags for this Thread

What are tags?

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.

Contact us