hide-matlab-error-stack
Hide MATLAB error stack from clients
Syntax
--hide-matlab-error-stack
Description
hide-matlab-error-stack
controls whether the server sends
the MATLAB® error stack to the client. You can choose to send the error stack during
development and debug phases, but can turn it off in production.
Examples
Do not transmit the error stack to clients.
Uncomment the following property in the
main_config
server configuration file.--hide-matlab-error-stack
Example of the error that a REST client receives:
{ "error": { "id": "MATLAB:invalidConversion", "message": "Conversion to double from struct is not possible.", "type": "matlaberror" } }
Transmit the error stack to clients.
Add a
#
to comment the following property in themain_config
server configuration file.#--hide-matlab-error-stack
Example of the error that a REST client receives:
{ "error": { "id": "MATLAB:invalidConversion", "message": "Conversion to double from struct is not possible.", "stack": [ { "file": "C:\\Program Files\\MATLAB\\MATLAB Runtime\\v99\\mcr\\toolbox\\matlab\\elmat\\magic.m", "line": 9, "name": "magic" }, { "file": "J:\\server20b\\.mps_deployed\\mpsTestData_6\\mpsTestData\\m\\myMagic.m", "line": 7, "name": "myMagic" } ], "type": "matlaberror" } }