
fprintf(1, "Try stopping on warning, type \"dbstep out\" when stopped.\n")

## turn on debugging on warnings
debug_on_warning(true);

## test it
dbstepouttesthighlevel();

fprintf(1, "Now try with break point, type \"dbstep out\" when stopped.\n")

## turn off debugging on warnings
debug_on_warning(0);

## add break point at warning line in subfunction
dbstop("dbstepoutlowlevel.m", 3)

## test it
dbstepouttesthighlevel();






