Debugging Simulink Export code in Visual Studio

I want to debug code in Visual Studio that is exported from Simulink. The code that is exported comes out as C++ (Unmanged code). I am able to open the solution in Visual Studio C++, compile it, and place it inside my C# Windows project. I can do a dllexport on the functions in the code and call the functions. But I cannot step into the code generated by Simulink. Is there a way to do this?
Mathlab 2012b Visual Studio 2010 and 2012

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 13 Mär. 2013

0 Stimmen

Once you generate the code from Simulink, it is like any other generic C++ code, so this seems like a general C++ question, than a Simulink-specific issue. I'm not sure how debugging across the C#-C++ interface works, but have you already compiled the C++ code using debug options? Are you able to debug similarly compiled and deployed C++ code?

Kategorien

Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 12 Mär. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by