| Contents | Index |
The Code Generation Debug pane includes the following parameters when the Simulink Coder product is installed on your system and you select a GRT- or ERT-based target.

| On this page… |
|---|
Code Generation: Debug Tab Overview Start TLC debugger when generating code |
Select build process and Target Language Compiler (TLC) process options.
Display code generation progress.
Default: on
The MATLAB Command Window displays progress information indicating code generation stages and compiler output during code generation.
Does not display progress information.
| Parameter: RTWVerbose |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | On |
Specify model.rtw file retention.
Default: off
Retains the model.rtw file in the current build folder. This parameter is useful if you are modifying the target files and need to look at the file.
Deletes the model.rtw from the build folder at the end of the build process.
| Parameter: RetainRTWFile |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Profile the execution time of TLC files.
Default: off
The TLC profiler analyzes the performance of TLC code executed during code generation, and generates an HTML report.
Does not profile the performance.
| Parameter: ProfileTLC |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify use of the TLC debugger
Default: Off
You can also start the TLC debugger by entering the -dc argument into the System target file field.
To invoke the debugger and run a debugger script, enter the -df filename argument into the System target file field.
| Parameter: TLCDebug |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Generate the TLC execution report.
Default: off
Generates .log files containing the number of times each line of TLC code is executed during code generation.
Does not generate a report.
You can also generate the TLC execution report by entering the -dg argument into the System target file field.
| Parameter: TLCCoverage |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Produce the TLC stack trace
Default: off
The build process halts if any user-supplied TLC file contains an %assert directive that evaluates to FALSE.
The build process ignores TLC assertion code.
| Parameter: TLCAssert |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | On |
![]() | Code Generation Pane: Custom Code | Code Generation Pane: Interface | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |