Questions:
(full description of problem is below)
Does anyone have a suggestion on how to trick Matlab into skipping a line or several lines of code? (mex / java / rewriting some internal Matlab features?)
Does anyone know where db* code files may be located (if exist)?
There are several functions in Matlab that allow flow-control while debugging / running a program: dbstop, dbcont, dbstep, etc... I was trying to find a db* function that would skip the next line in a Matlab script, dbskip perhaps, but sadly there is no such builtin functionality and it doesn't seem like this feature going to be ever implemented (10 years and counting).
EDIT example of use:
The following script, myScript, may call a function myFunc which decides on whether to skip the next line in the caller script based on the value of its input, like so:
% myScript.m