mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
33 lines
398 B
Text
33 lines
398 B
Text
# Set breakpoint at main
|
|
b main
|
|
# Run the program
|
|
run
|
|
# Step through to see what happens
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
n
|
|
# Now we're in the loop - let's examine the students array
|
|
p num_students
|
|
p students[0]
|
|
p students[1]
|
|
p students[2]
|
|
# Continue to the crash
|
|
c
|
|
# When it crashes, show backtrace
|
|
bt
|
|
# Examine the frame
|
|
frame variable
|
|
# Look at what students[i] is when it crashes
|
|
p i
|
|
p students[i]
|
|
quit
|