Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to trigger breakpoint by command in matlab

I have an if state in my code where if something went wrong and I want to debug if it hits there. similar to manually set breakpoint enter image description here on that line but permanent. so it will always have that red dot over there by command..

I've seen some dbstop commands but they are all ends with in file or if error..

I couldn't find a basic 'dbstop here' or something..

Is that possible? Thanks.

like image 361
Yarden Cohen Avatar asked Dec 31 '15 00:12

Yarden Cohen


1 Answers

Take a look at the keyboard command. It will not create the red dot, but it basically behaves like a breakpoint.

like image 53
Daniel Avatar answered Oct 21 '22 14:10

Daniel