Is it possible to obtain a debuggable S-function which is generated automatically by RTW?

1 次查看(过去 30 天)
I'm using Matlab Real-Time Workshop in several versions of Matlab (2007a, 2007b, 2009a) with Microsoft Visual Studio 2008. I'm building s-functions from simulink models. While building S-Functions automatically by RTW, is there any option in configuration parameters dialog of models that make possible to obtain debuggable s-functions?
I set Compiler Optimization level as "Custom" and I entered some flags(/Zi,/DNDEBUG,etc) in "custom compiler optimization flags" but I couldn't achieve to get a debuggable s-function.
Is there any way to do this?

回答(1 个)

Guy Rouleau
Guy Rouleau 2013-11-7
In the generated makefile, search for "debug", you should find some comments explaining what to do. If you can find it, you should find the OPT flags passed to the compiler... add yours there. Once you modified the makefile, re-run the bat-file and it should generate a debuggable mex-file with the pdb file.

类别

Help CenterFile Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by