mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-29 16:24:43 +00:00
Estimated hours taken: 5 Allow the value of an exception to be printed and browsed at EXCP events in the internal debugger. Two new commands are added to the debugger: print exception browse exception trace/mercury_trace_internal.c: Implement the new commands. runtime/mercury_trace_base.c: runtime/mercury_trace_base.h: Export functions to get/set a global which stores the value of an exception for the internal debugger to refer to. library/exception.m: Set the exception value before generating EXCP events. doc/user_guide.texi: Document the new debugger commands. tests/debugger/Mmakefile: tests/debugger/exception_value.m: tests/debugger/exception_value.inp: tests/debugger/exception_value.exp: tests/debugger/exception_value.exp2: Add a test case.
16 lines
147 B
Plaintext
16 lines
147 B
Plaintext
echo on
|
|
register --quiet
|
|
break p
|
|
break q
|
|
continue
|
|
finish
|
|
print exception
|
|
continue
|
|
finish
|
|
browse exception
|
|
set depth 9
|
|
set size 99
|
|
ls
|
|
quit
|
|
continue
|