mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 11:23:46 +00:00
trace/mercury_trace_cmd_browsing.c:
Change the dump command to allow the name of the variable
whose value is to be dumped to be followed by a path,
specifying the *part* of the variable's value to be printed.
trace/mercury_trace_vars.[ch]:
To make that possible, provide a version of an existing function
that returns an extra value that the new code in
mercury_trace_cmd_browsing.c needs, and another extra value
that conceptually belongs with it.
Mark strange code with an XXX.
NEWS.md:
Announce both this new capability and a just-now contributes predicate.
library/pqueue.m:
Make the just-now contributed code more readable.
tests/debugger/browser_test.{m,inp,exp3}:
Extend this test case to test the new functionality.
64 lines
801 B
Plaintext
64 lines
801 B
Plaintext
echo on
|
|
register --quiet
|
|
list_context_lines 10
|
|
break big_data
|
|
continue
|
|
finish
|
|
delete *
|
|
dump -q 1 browser_test.save.1
|
|
format raw_pretty
|
|
print *
|
|
format -A verbose
|
|
print *
|
|
browse 1; ls; quit
|
|
format -AP flat
|
|
print -f 1
|
|
print -p 1
|
|
print -v 1
|
|
print -r 1
|
|
print --xyzzy 1
|
|
browse 1; print; quit
|
|
browse -f 1; ls; quit
|
|
browse Data
|
|
ls
|
|
cd /1
|
|
ls
|
|
cd /1/2
|
|
ls
|
|
cd /3
|
|
ls
|
|
cd 1/3/2
|
|
ls
|
|
cd
|
|
ls
|
|
cdr 100 2
|
|
cdr 3 1
|
|
ls
|
|
cdr 3 ../1/..
|
|
ls
|
|
quit
|
|
format_param -A -f depth 1
|
|
print *
|
|
print Data/1
|
|
format_param -f depth 3
|
|
print 1
|
|
print Data/1/2
|
|
print 1^1^2^3
|
|
retry
|
|
break list_data
|
|
continue
|
|
finish
|
|
dump Data browser_test.save.2
|
|
dump -x Data browser_test.save.3
|
|
dump -p Data browser_test.save.4
|
|
dump -p Data^2 browser_test.save.5
|
|
dump -p Data^42 browser_test.save.5
|
|
break a_func
|
|
continue
|
|
finish
|
|
print -p
|
|
print -r
|
|
print -v
|
|
print -f
|
|
continue
|