Code covered by the BSD License  

Highlights from
dbmute and dbunmute

dbmute and dbunmute

by

 

11 Jul 2009 (Updated )

Allows you to quickly disable all your breakpoints, and then quickly re-enable them all.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

isDisabled(expression)
function disabled = isDisabled(expression)
%isDisabled returns true if the given breakpoint expression is disabled.
% Copyright 2009 The MathWorks, Inc.   

    wrappingFalse = 'false&&(';
    disabled = strcmp(expression, 'false') ...
        || strncmp(expression, wrappingFalse, length(wrappingFalse));
    
end

Contact us