mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
browser/browse.m:
Add save_and_browse_browser_term_web to be called when
"browse --web" is entered at the mdb prompt.
Add browser_term_to_html_flat_string, a helper predicate for
term_to_html.
Make portray_flat_write_browser_term work take a stream parameter
instead of writing to the current output stream. It is called by
browser_term_to_html_flat_string, writing to a string builder
stream.
browser/browser_info.m:
Add web_browser_cmd field to browser_persistent_state.
browser/mdb.m:
browser/term_to_html.m:
Add new module to generate an HTML document. The document contains a
JavaScript represention of a Mercury term.
(The JavaScript string escaping code is adapted from Julien's
mercury-json project.)
browser/percent_encoding.m:
Add new module to perform percent-encoding.
scripts/mdb_term_browser.css:
scripts/mdb_term_browser.js:
Add JavaScript and CSS files referenced by the generated HTML file
to create a tree view of a Mercury term using jstree.
scripts/32px.png:
scripts/40px.png:
scripts/throbber.gif:
scripts/jstree.min.js:
scripts/jstree.style.min.css:
Add local copy of jstree files <https://www.jstree.com/>
scripts/jquery.slim.min.js:
Add local copy of jquery <https://jquery.com/>
scripts/Mmakefile:
Install the new files into the same directory as mdbrc and other
mdb-related files.
trace/mercury_trace_browse.c:
trace/mercury_trace_browse.h:
trace/mercury_trace_cmd_browsing.c:
trace/mercury_trace_cmd_parameter.c:
trace/mercury_trace_cmd_parameter.h:
trace/mercury_trace_internal.c:
Add "browse --web" and "web_browser_cmd" commands.
doc/user_guide.texi:
Document "browse --web" and "web_browser_cmd" commands.
configure.ac:
scripts/mdbrc.in:
Set a reasonable default command to launch a web browser from mdb.
(Only tested on Linux.)
NEWS:
Announce the new feature.
.README.in:
Mention jquery and jstree licensing.
tests/debugger/Mmakefile:
tests/debugger/completion.exp:
tests/debugger/mdb_command_test.inp:
tests/debugger/save.exp2:
Update debugger tests for new commands.
114 lines
2.6 KiB
Plaintext
114 lines
2.6 KiB
Plaintext
1: 1 1 CALL pred save.main/2-0 (cc_multi) save.m:19
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> b data
|
|
0: + stop interface pred save.data/1-0 (det)
|
|
mdb> b nodiag
|
|
1: + stop interface pred save.nodiag/3-0 (semidet)
|
|
mdb> condition B = 5
|
|
1: + stop interface pred save.nodiag/3-0 (semidet)
|
|
B = 5
|
|
mdb> context nextline
|
|
Contexts will be printed on the next line.
|
|
mdb> scroll 42
|
|
Scroll window size set to 42.
|
|
mdb> alias x save
|
|
x => save
|
|
mdb> trust save
|
|
Trusting module save
|
|
mdb> save save_file
|
|
Debugger state saved to save_file.
|
|
mdb> continue -n -S
|
|
[1, 3, 5, 2, 4]
|
|
alias ! shell
|
|
alias ? help
|
|
alias EMPTY step
|
|
alias NUMBER step
|
|
alias P print *
|
|
alias b break
|
|
alias c continue
|
|
alias d stack
|
|
alias e exception
|
|
alias excp exception
|
|
alias f finish
|
|
alias g goto
|
|
alias grep source ZZZ/mdb_grep
|
|
alias h help
|
|
alias open source ZZZ/mdb_open
|
|
alias p print
|
|
alias r retry
|
|
alias s step
|
|
alias track source ZZZ/mdb_track
|
|
alias v vars
|
|
alias x save
|
|
printlevel some
|
|
echo on
|
|
scroll on
|
|
scroll 42
|
|
stack_default_limit 0
|
|
context nextline
|
|
goal_paths on
|
|
break pred*save.data/1-0
|
|
break pred*save.nodiag/3-0
|
|
condition B = 5
|
|
scope interface
|
|
format -P flat
|
|
format_param -P -f depth 3
|
|
format_param -P -f size 10
|
|
format_param -P -f width 80
|
|
format_param -P -f lines 25
|
|
format_param -P -r depth 3
|
|
format_param -P -r size 10
|
|
format_param -P -r width 80
|
|
format_param -P -r lines 25
|
|
format_param -P -v depth 3
|
|
format_param -P -v size 10
|
|
format_param -P -v width 80
|
|
format_param -P -v lines 25
|
|
format_param -P -p depth 3
|
|
format_param -P -p size 10
|
|
format_param -P -p width 80
|
|
format_param -P -p lines 25
|
|
format -B flat
|
|
format_param -B -f depth 10
|
|
format_param -B -f size 30
|
|
format_param -B -f width 80
|
|
format_param -B -f lines 25
|
|
format_param -B -r depth 10
|
|
format_param -B -r size 30
|
|
format_param -B -r width 80
|
|
format_param -B -r lines 25
|
|
format_param -B -v depth 10
|
|
format_param -B -v size 30
|
|
format_param -B -v width 80
|
|
format_param -B -v lines 25
|
|
format_param -B -p depth 10
|
|
format_param -B -p size 30
|
|
format_param -B -p width 80
|
|
format_param -B -p lines 25
|
|
format -A flat
|
|
format_param -A -f depth 3
|
|
format_param -A -f size 10
|
|
format_param -A -f width 80
|
|
format_param -A -f lines 2
|
|
format_param -A -r depth 3
|
|
format_param -A -r size 10
|
|
format_param -A -r width 80
|
|
format_param -A -r lines 2
|
|
format_param -A -v depth 3
|
|
format_param -A -v size 10
|
|
format_param -A -v width 80
|
|
format_param -A -v lines 5
|
|
format_param -A -p depth 3
|
|
format_param -A -p size 10
|
|
format_param -A -p width 80
|
|
format_param -A -p lines 2
|
|
max_io_actions 20
|
|
xml_browser_cmd ZZZ
|
|
xml_tmp_filename ZZZ
|
|
web_browser_cmd ZZZ
|
|
trust save
|
|
trust std lib
|
|
list_context_lines 2
|