After this training session:
- you know enable debugging extension
- you have learned how to set a breakpoint
- you know how to start the debugging
- you know where you find further information regarding the main control panel and different views of the debug extension
To enable the debugging, the debug extension need a configuration file. It's called launch.json
.
-
Open the debug extension in the left side bar
-
Click on `create a launch.json file.
This is needed for the Debug extension. If already a launch.json exists, then this step is not necessary.
-
Select
Debug ST tests
Result:
Note: this file must not be changed manually
-
Open the file
./src/Math/Add.st
-
Set a breakpoint by clicking left beside the line numbers (see screenshot)
-
Open the test explorer and click on
Debug Tests
-
Watch the result
Explanation:
-
End debugging by pressing
Shift + F5
or clicking onStop
on the main control panel
Goal reached? Check yourself...