Redirect compiled GUI error/output information
1 回表示 (過去 30 日間)
古いコメントを表示
I have a GUI under development that throws errors. This is by design to test some error handling/recovery methods. The problem is that in order to see when an error makes it past the handling I must have launched the compiled GUI from the command prompt. Since no one does that I want to make it redirect that error information by default to an error dialog box. I have a work around by wrapping everything in try catch blocks but this feels sloppy to me and it works only for errors. Is there a way to redirect all printed/displayed information to a stream other than the command prompt by default? I have played around with creating a separate figure as sort of a log but had trouble directing output there. The ideal solution would be anything like fprintf, display, warning or error would magically create a new window and display the text. If I can't redirect everything, redirecting all errors somewhere would still be very helpful.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!