mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
Estimated hours taken: 4 Make declarative debugging enabled by default, and add test cases. The declarative debugger, while not complete, is fairly stable so users will be able to experiment with it after this change without having to re-configure the whole system. However, the main motivation for this change is so that developers who make changes to the system will have access to these test cases. configure.in: Turn the decl-debug feature on by default. tests/debugger/declarative: New directory containing tests for the declarative debugger. tests/debugger/declarative/*.m: tests/debugger/declarative/*.inp: tests/debugger/declarative/*.exp: Declarative debugger test cases. tests/debugger/declarative/Mmakefile: Mmakefile to do the declarative debugger tests. tests/debugger/Mmakefile: For each target, make the corresponding target in the 'declarative' subdirectory. WORK_IN_PROGRESS: Document the new (incomplete) feature.
34 lines
533 B
Plaintext
34 lines
533 B
Plaintext
1: 1 1 CALL pred propositional:main/2-0 (det)
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> goto 10
|
|
10: 2 2 EXIT pred propositional:a/0-0 (semidet)
|
|
mdb> dd_wrong
|
|
a
|
|
Valid? n
|
|
c
|
|
Valid? y
|
|
Incorrect instance found:
|
|
|
|
a :-
|
|
c.
|
|
|
|
10: 2 2 EXIT pred propositional:a/0-0 (semidet)
|
|
mdb> goto 21
|
|
21: 5 2 EXIT pred propositional:b/0-0 (semidet)
|
|
mdb> dd_wrong
|
|
b
|
|
Valid? n
|
|
f
|
|
Valid? n
|
|
i
|
|
Valid? y
|
|
Incorrect instance found:
|
|
|
|
f :-
|
|
i.
|
|
|
|
21: 5 2 EXIT pred propositional:b/0-0 (semidet)
|
|
mdb> c
|
|
yes
|