As Pavel pointed out, on Apple Silicon "b main" stops at a point after the variable has already been initialized. This patch updates the test case to avoids that. I've also split the test into separate files so its easier to reproduce the individual scenarios without having to build any shared state.
10 lines
192 B
Plaintext
10 lines
192 B
Plaintext
breakpoint set -p "Break here"
|
|
r
|
|
watchpoint set variable val
|
|
watchpoint command add -s lua
|
|
print("val=" .. tostring(frame:FindVariable("val"):GetValue()))
|
|
quit
|
|
c
|
|
# CHECK: val=1
|
|
# CHECK: val=2
|