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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -