You can introduce errors as described in each of the following steps and note the response from the SDx IDE.
- Open the source filemain.cppfrom thesrcfolder and remove the semicolon at the end of the
std::cout
statement near the bottom of the file.
Notice that a yellow box shows up on the left edge of the line.
- Move your cursor over the yellow box and notice that it tells you that you have a missing semicolon.
- Insert the semicolon at the right place and notice how the yellow box disappears.
- Now change
std::cout
tostd::cou
and notice how a pink box shows up on the left edge of the line.
- Move the cursor over the pink box to see a popup displaying the “corrected” version of the line with
std::cout
instead ofstd::cou
.
- Correct the previous error by changing
std::cou
tostd::cout
.
- Introduce a new error by commenting out the line that declares all the variables used in
main()
.
- Save and build the project. Do not wait for the build to complete.
- 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.
- Uncomment the line where the variables are declared.