Main Content

Enable source-level debugging for SIL or PIL

Debugging of generated code during a SIL or PIL execution

Since R2023a

Description

App Configuration Pane: Debugging

Configuration Objects: coder.EmbeddedCodeConfig

Debugging of generated code during a software-in-the-loop (SIL) or processor-in-the-loop (PIL) execution.

See Debug Generated Code During SIL or PIL Execution (Embedded Coder).

Settings

Off

This value is the default value.

Disables debugging of generated code during a SIL or PIL execution.

On

Enables the debugger to observe code behavior during a software-in-the-loop (SIL) or processor-in-the-loop (PIL) execution.

Supported debuggers for SIL execution:

  • On Windows®:

    • Microsoft® Visual Studio® IDE.

    • Visual Studio Code with MinGW® GDB. Requires installation of MATLAB® Coder™ Interface for Visual Studio Code Debugging support package.

  • On macOS, Visual Studio Code with LLDB. Requires installation of MATLAB Coder Interface for Visual Studio Code Debugging support package.

  • On Linux®:

    • GNU® Data Display Debugger (DDD).

    • Visual Studio Code with GDB. Requires installation of MATLAB Coder Interface for Visual Studio Code Debugging support package.

For information about installing the support package, see https://www.mathworks.com/matlabcentral/fileexchange/103555-matlab-coder-interface-for-visual-studio-code-debugging.

For information about setting up debuggers for PIL execution, see Set Up PIL Connectivity by Using Target Framework (Embedded Coder).

Programmatic Use

Property: SILPILDebugging
Values: false | true
Default: false

Version History

Introduced in R2023a