Report error line from a P-coded file
11 次查看(过去 30 天)
显示 更早的评论
The company I work for has a MATLAB based software product and we provide customers with a set of p-coded MATLAB files that they can run. Sometimes they run into issues but cannot send us their script because it is classified information. Is there a way to write out the line the error occured in inside the p-coded script? Ive tried using;
errMsg = sprintf('Error in line %d: %s', ME.stack(1).line, ME.message);
error(errMsg);
but when its converted to p-code, it outputs the error line as line 0.
2 个评论
Mario Malic
2023-9-18
I don't know anything about P-code, but can you output the error in the form of text document, so that they can forward the text file itself?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!