Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 354
silvino.barreiros Avatar asked Sep 25 '26 05:09

silvino.barreiros


1 Answers

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).

like image 112
Sam Roberts Avatar answered Sep 27 '26 17:09

Sam Roberts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!