The following commands are intended for use by the developers of the Mercury implementation.
var_detailsflag
flag flagname
flag flagname on
flag flagname off
subgoal n
consumer n
gen_stack
cut_stack
pneg_stack
mm_stacks
nondet_stack [-d] [-fnumframes] [numlines]
The ‘-f’ option, if present, specifies that
only the topmost numframes stack frames should be printed.
The optional number numlines, if present,
specifies that only the topmost numlines lines should be printed.
stack_regs
all_regs
debug_vars
stats [-f filename] subject
subject can be ‘procs’,
which asks for statistics about proc layout structures in the program.
subject can be ‘labels’,
which asks for statistics about label layout structures in the program.
subject can be ‘var_names’,
which asks for statistics about the space occupied by variable names
in the layout structures in the program.
subject can be ‘io_tabling’,
which asks for statistics about the number of times
each predicate appears in the I/O action table.
print_optionals
print_optionals on
print_optionals off
unhide_events
unhide_events on
unhide_events off
table proc [num1 ...]
For now, this command is supported only for procedures
whose arguments are all either integers, floats or strings.
If the user specifies one or more integers on the command line,
the output is restricted to the entries in the call table in which
the nth argument is equal to the nth number on the command line.
type_ctor [-fr] modulename typectorname arity
If the option ‘-r’ or ‘--print-rep’ option is given,
it also prints the name of the type representation scheme
used by the type constructor
(known as its `type_ctor_rep' in the implementation).
If the option ‘-f’ or ‘--print-functors’ option is given,
it also prints the names and arities
of function symbols defined by type constructor.
all_type_ctors [-fr] [modulename]
If the option ‘-r’ or ‘--print-rep’ option is given,
it also prints the name of the type representation scheme
of each type constructor
(known as its `type_ctor_rep' in the implementation).
If the option ‘-f’ or ‘--print-functors’ option is given,
it also prints the names and arities
of function symbols defined by each type constructor.
class_decl [-im] modulename typeclassname arity
If the option ‘-m’ or ‘--print-methods’ option is given,
it also lists all the methods of the type class.
If the option ‘-i’ or ‘--print-instance’ option is given,
it also lists all the instances of the type class.
all_class_decls [-im] [modulename]
If the option ‘-m’ or ‘--print-methods’ option is given,
it also lists all the methods of each type class.
If the option ‘-i’ or ‘--print-instance’ option is given,
it also lists all the instances of each type class.
all_procedures [-su] [-m modulename] filename
If the ‘-s’ or ‘--separate’ option is given,
the various components of procedure names are separated by spaces.
If the ‘-u’ or ‘--uci’ option is given,
the list will include the procedures of
compiler generated unify, compare, index and initialization predicates.
Normally, the list includes the procedures of only user defined predicates.
ambiguity [-o filename] [-ptf] [modulename ...]
If any module names are given, then only those modules are consulted,
(any ambiguities involving predicates, functions and type constructors
in non-listed modules are ignored).
The module names have to be fully qualified,
if a module child is a submodule of module parent,
the module name list must include parent.child;
listing just child won't work,
since that is not a fully qualified module name.
If the ‘-o’ or ‘--outputfile’ option is given,
the output goes to the file named as the argument of the option;
otherwise, it goes to standard output.
If one or more of the ‘-p’, ‘-t’, ‘-f’ options
or their long equivalents, ‘--types’, or ‘--functors’,
this command prints ambiguities only for the indicated kinds of constructs.
The default is to print all ambiguities.
trail_details