debugging - Print Line Number in Matlab -
i have matlab function runs few thousands of lines of code. under condition, breaking. can well, debug code , run step-by-step.
so, have try, catch block in matlab handle error. in addition this, possible capture, line number of code well.
for example :
try error here <----- catch err disp(['error occured on line no ' num2str(lineno]) end any idea, how can implemented ?
try this. print out line numbers along full stack.
try %some code; catch exc getreport(exc, 'extended') end
Comments
Post a Comment