Hi all,
Hopefully anyone can guide me in the right direction on how to use the debugger in VS Code for C. The make test
command works perfectly fine, but I am new to C and would love to use the debugger to step through the code line by line.
Running the test file in VS Code (for the grade school exercise in this example) results in the following error on a MacBook Pro 2019:
ld: Undefined symbols:
_UnityAssertEqualNumber, referenced from:
_test_roster_is_empty_when_no_student_added in test_grade_school-90dee8.o
_check_rosters in test_grade_school-90dee8.o
_UnityAssertEqualString, referenced from:
_check_roster_names in test_grade_school-90dee8.o
.... (bunch of tracebacks)
_test_student_not_added_to_same_grade_in_roster_more_than_once in test_grade_school-f301fd.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
➜ grade-school
Any idea what I am doing wrong? Any feedback is very much appreciated!