Computer Vision News - May 2016

Trick How to Save Breakpoints in Matlab? COMPUTER VISION NEWS 8 Every month, Computer Vision News shows you a nice trick which makes our life easier… This time, our engineers have decided to show you how to save breakpoints in Matlab : You must be familiar with this situation: you are developing a new, complex multistage algorithm in Matlab and you set several breakpoints during the debugging process of your code. Whenever the Matlab crashes (which is not so infrequent in the first stages of the development process), unlike other IDEs it does not save the previously set breakpoints, which simply disappear. This might also happen when you accidentally press the 'clear all breakpoints' button. What can be done? How can we prevent the loss of previously set breakpoints in Matlab ? The following 10-lines STOP_HERE.m Matlab script comes to our rescue: Save this STOP_HERE.m script in your working directory or in a directory which is accessible by your Matlab path. Now, whenever you would like to STOP the execution of your code and start debugging, all you have to do is write STOP_HERE() as shown in the next page. With this command, the STOP_HERE function adds a breakpoint (on the fly) in the exact place where you have called it in your code. Those breakpoints "stay in place" even if your Matlab crashes. 

RkJQdWJsaXNoZXIy NTc3NzU=