Error Reporting

You can introduce errors as described in each of the following steps and note the response from the SDx IDE.

  1. Open the source filemain.cppfrom thesrcfolder and remove the semicolon at the end of thestd::coutstatement near the bottom of the file.

    Notice that a yellow box shows up on the left edge of the line.

  2. Move your cursor over the yellow box and notice that it tells you that you have a missing semicolon.
  3. Insert the semicolon at the right place and notice how the yellow box disappears.
  4. Now changestd::couttostd::couand notice how a pink box shows up on the left edge of the line.
  5. Move the cursor over the pink box to see a popup displaying the “corrected” version of the line withstd::coutinstead ofstd::cou.
  6. Correct the previous error by changingstd::coutostd::cout.
  7. Introduce a new error by commenting out the line that declares all the variables used inmain().
  8. Save and build the project. Do not wait for the build to complete.
  9. You can see the error messages scrolling by on the console. Open theRelease/_sds/reports/sds_main.logandRelease/_sds/reports/sds_mmult.logfiles to see the detailed error reports.
  10. Uncomment the line where the variables are declared.