Changes between Initial Version and Version 1 of ControlSystems/SoftwareTeam/Training/GettingStarted/Debugger


Ignore:
Timestamp:
Nov 4, 2019, 3:04:46 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/Debugger

    v1 v1  
     1With the !VariablesExample.java program above open in the editor click to the left of the line number (7) for the line a=3; and a red dot will appear called a breakpoint.
     2[[Image(breakpoint.jpg, 50%, margin=10)]]
     31. Click Debug->Start Debugging
     42. The program will start running but will stop (break) at line 7
     5[[Image(stopped.jpg, 50%, margin=10)]]
     63. Click on the Step-over icon [[Image(stepover.jpg)]] above the editor (or press function key F10) to execute that line of code and then stop again
     74. Observe the Variables window in the left navigation panel and note that there is now a variable named 'a' with the value 3
     8[[Image(variables.jpg)]]
     95. Press F10 again to execute the line b=4 and observe the variable appearing in the Variables window
     106. Double click on the variable b in the Variables window and change its value to 5
     117. Press F10 again to execute the line c=a*b and observe the variable c appearing in the Variables window with the value 15.
     128. Press the Continue tool [[Image(continue.jpg)]] (or function key F5) above the editor window to allow the program to continue running to the end.  Observe the value printed in the output terminal window.
     13
     14The VSCode debug toolbar [[Image(VSC_toolbar.png)]] offers a complete set of tools to control the execution of your program:
     15* Continue / Pause F5
     16* Step Over F10
     17* Step Into F11
     18* Step Out Shift+F11
     19* Restart Ctrl+Shift+F5
     20* Stop Shift+F5
     21