Launch the Debug Tool - 2020.2 English

Model Composer and System Generator User Guide (UG1483)

Document ID
UG1483
Release Date
2020-11-18
Version
2020.2 English

After enabling the debug build mode, the xmcImportFunctionSettings command returns a link to the suggested debugging tool.

A third-party debugger is required for debugging with Model Composer. The default debugger is GDB for both the Linux and Windows operating systems.

In the Windows environment, you can also specify the use of Microsoft Visual Studio as the compilation, and debugging tool. This requires the use of the xmcImportFunctionSettings command using the 'compiler' option, and specifying the 'Visual Studio' value:
xmcImportFunctionSettings('compiler','Visual Studio')
The Model Composer tool will look for Visual Studio in some default installation locations, but you can also specify the program location if needed.
Tip: When debugging with Visual Studio, MATLAB may throw exceptions that can be safely ignored. When this happens disable the Break when this exception type is thrown checkbox, and click Ignore.
Figure 1. Visual Studio Exception