How to see Errors in a compiled application?

15 views (last 30 days)
Hi,
I compiled a program into standalone application. The program works fine in MATLAB.
But, in compiled application, I do not get expected output.
Is there a way to see the errors in my compiled application, so than I can fix them.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Nov 2017
Follow these steps to see the error message in compiled application.
  • Open Command prompt or terminal
  • Navigate to the location where the standalone application reside
  • Run the standalone application from there.
It will give us Error/Warning messages(if any) while running the compiled application.
  1 Comment
Osman Ciftci
Osman Ciftci on 3 Mar 2020
A follow up question, is there a way to systematically capture built in Matlab errors (so without the programmer defining specific errors for the code, as sometimes there are errors which are not foreseable by the programmer) and store them? I have been experimenting with MException but didn't have much luck. As far as I undertstand the LAST method for the MException only works on the command prompt.
Best
Osman

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!