Target Language Compiler    

Start the Debugger and Explore Commands

We use the TLC debugger to monitor the code generation process. As it is not invoked by default, we need to request the debugger to start.

  1. Set up the TLC debugging environment and start to build the application:
  1. Click the Real-Time Workshop tab, and change the pull-down menu labeled Category from Target configuration to TLC debugging.

    Select the check boxes Retain .rtw file and Start TLC debugger when generating code.

    Click the Build button.

    The MATLAB command window describes the building process. The build stops at the gain.tlc file and displays the command prompt:

  1. Type help to list the TLC debugger commands. Here are some things you can do in the debugger; try them if you like:

  Generate and Run Code from the Model Debug gain.tlc