Identifying problems in your code

 

In this section, you will review the different indicators for identifying problems in your code.

 

Compile problems are displayed in the Tasks view and annotated in the vertical ruler of your source code.

 

  1. Open Minimal.str in the editor from the Package Explorer view.
  2. Add a syntax error by deleting the semicolon at the end of the second line in the source code.

 

 

  1. Click the Save button.  Select StreamIt > Compile Changes.  The file is recompiled and the problem is indicated in several ways:

 

 

  1. You can hover over the problem marker in the vertical ruler to view a description of the problem.

 

 

  1. Click the Close button on the editor's tab to close the editor.
  2. In the Tasks view, select a problem in the list.  Open its context menu and select Go To.  The file is opened in the editor at the location of the problem.

 

 

  1. Correct the problem in the editor by adding the semicolon. Click the Save button.  Select StreamIt > Compile Changes.  The project is recompiled and the problem indicators disappear.

 

Related tasks

Compiling a StreamIt program

Viewing compilation errors and warnings