3.4.5.2 Building and Loading the Project and Setting up Debug Environment
Right-click on the project name
and click Rebuild Project.
The project builds
successfully.
In the Project Explorer, make
sure the correct target configuration file is set as Active under
targetConfigs.
Then, click Run →
Debug to launch a debugging session.
The project then loads on the
device and the CCS debug view becomes active. The code halts at the start of the
main routine.
To add the variables in the
watch/expressions window, click View → Scripting Console to open
the scripting console dialog box. On the upper right corner of this console,
click on open and then browse to the setupdebugenv_lab4.js script
file located inside the project folder. This populates the watch window with the
appropriate variables needed to debug the system.
Click on the Continuous
Refresh button on the watch window to enable continuous update of
values from the controller.