These are the support files for the JMU UUG debugging demo, originally given Sep 26, 2018.
Load DebugDemo.java in jGRASP. Step through the sum
and
str
methods then attempt to debug the sort
method.
Three simple examples are given in the c folder. For a more complex example, try GDB on your CS 261 projects!
To install: wget -P ~ git.io/.gdbinit
Github repo: github.com/cyrus-and/gdb-dashboard
Pre-tutorial setup:
-
Connect to stu in VS Code
-
Open terminal and run the following command:
git clone https://github.com/lam2mo/uug-debug.git
-
Open the resulting "uug-debug/c" folder in VS Code (make sure you include the "/c" part!) (and choose to "trust the authors")
-
Open terminal and run "make" to build all programs
-
Verify that you can see the "Run and Debug" panel
(if not, install the "C/C++" extension)