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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -