Send As SMS

2/20/2006

set a breakpoint in matlab when dbstop not working

for some reason or another, i can't get dbstop to work (running matlab7 on "os x"). even manually setting a breakpoint in the matlab editor doesn't work.

as expected, this makes debugging quite difficult.

fortunately, i've rediscovered this handy function:

keyboard
just stick this in wherever you'd like your code to pause and grant you keyboard access.


2 Comments:

Anonymous said...

yes, this has been very useful!

- fellow MIT student

7/31/2006 03:52:14 PM  
Anonymous said...

'Keyboard' works for me as well. -But why doesen´t the "red dots" do the trick anymore? Is this a path/pwd issue?

I have R13(6.5) installed.

/"Matlab-inmate" from Denmark.

9/19/2006 02:29:19 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.