Tuesday, December 20, 2011

Matlab Debugger Do not Stop

Having done some Matlab development lately, I observed a strange bug. I had a main script program as follow:

clear all;
close all:

MyFunction();

... do something 
In the code debugging process, I tried to place a break point in MyFunction's code, and although the break point appears to be set in the editor GUI, the program do not stop when running!!!

After some research I figure out that the clear all command interfered with Matlab debugger and prevented the program to stop into a function. So the solution was to delete the clear all function and it the worked correctly.

It is really a shame that a 3000 CHF expensive program cannot manage the debugging process in a better way.