How can I debug a simulink C caller block in Visual Studio?

11 ビュー (過去 30 日間)
Ross Lintelman
Ross Lintelman 2020 年 4 月 26 日
コメント済み: Nils van Oijen 2022 年 6 月 20 日
I have a model with some c caller blocks.. I am using Visual Studio 2017 -- How can I generated the debug symbols and ultimately used the VS debugger to set breakpointe

回答 (1 件)

David Balbuena
David Balbuena 2022 年 4 月 12 日
In R2022a, a new feature was introduced to make it easy to debug custom code. You can refer to this page: https://www.mathworks.com/help/simulink/ug/debug-custom-code.html
If you are still in a release before R2022a, it is possible to debug in Visual Studio, but the workflow is not as straightforward. For instructions on how to do that, refer to the documentation for your specific release. For example, here are the instructions for R2021b: https://www.mathworks.com/help/releases/R2021b/simulink/ug/integrate-ccode-ccaller.html#mw_d8fef0fd-6efd-471c-84c1-5ef9ddaf65a2
  3 件のコメント
JulianSTABL
JulianSTABL 2022 年 6 月 3 日
I am experiencing the exact same error and would appreciate very much any hint to solve it.
Nils van Oijen
Nils van Oijen 2022 年 6 月 20 日
I had the same error, deinstalling other languages and setting Visual Studio to only English solved the problem for me.

サインインしてコメントする。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by