silvino.barreiros
silvino.barreiros

Reputation: 99

Debug MATLAB functions called from a JAVA program

So I have a jar built with the MATLAB Builder JA tool. Is it possible to debug the MATLAB functions from the Java process using the jar file?

Upvotes: 3

Views: 454

Answers (1)

Sam Roberts
Sam Roberts

Reputation: 24127

You can't debug them in the sense of being able to step through the MATLAB code line by line, as you can with MATLAB's own debugger prior to compilation. One of the steps that the MATLAB deployment products take is to encrypt the MATLAB code (so you can preserve your IP when distributing the deployed component). The ability to step through the code in a debugger after deployment would defeat the purpose of that.

Typically you would want to debug in MATLAB before deployment, or perhaps spread some disp statements around your code in a way that can be turned off after deployment (sorry if that advice doesn't help you now that have a .jar file).

Upvotes: 1

Related Questions