Files
mercury/tests/debugger/shallow.exp2
2025-01-20 01:27:57 +11:00

18 lines
640 B
Plaintext

1: 1 1 CALL pred shallow.main/2-0 (cc_multi) shallow.m:24
mdb> echo on
Command echo enabled.
mdb> context before
Contexts will be printed before, on the same line.
mdb> context
Contexts are printed before, on the same line.
mdb> step
2: 2 2 CALL shallow_helper_1.m:17 (shallow.m:39) pred shallow_helper_1.safe/1-0 (semidet)
mdb> print *
HeadVar__1 [1, 2, 3, 4, 5]
mdb> stack
0 pred shallow_helper_1.safe/1-0 (semidet) (shallow_helper_1.m:17)
1 pred shallow.queen/2-0 (nondet) (shallow.m:39)
2 pred shallow.main/2-0 (cc_multi) (shallow.m:25)
mdb> c -S
[1, 3, 5, 2, 4]