Changeset 4559 for trunk/compiler

Show
Ignore:
Timestamp:
11/01/08 18:52:43 (2 months ago)
Author:
pmoura
Message:

Updated the Logtalk built-in debugger implementation of the "display" command to include the write options quoted(false) and numbervars(false) (as in most Prolog debuggers).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4557 r4559  
    39903990'$lgt_dbg_valid_port_option'(q, _, _) :- !. 
    39913991'$lgt_dbg_valid_port_option'(d, _, _) :- !. 
     3992%'$lgt_dbg_valid_port_option'(w, _, _) :- !. 
    39923993'$lgt_dbg_valid_port_option'(x, _, _) :- !. 
    39933994'$lgt_dbg_valid_port_option'(h, _, _) :- !. 
     
    40864087 
    40874088'$lgt_dbg_do_port_option'(d, _, Goal, _, _, _) :- 
    4088     write('  Current goal: '), write_term(Goal, [ignore_ops(true)]), nl, 
     4089    write('  Current goal: '), write_term(Goal, [quoted(false), ignore_ops(true), numbervars(false)]), nl, 
    40894090    fail. 
     4091 
     4092%'$lgt_dbg_do_port_option'(w, _, Goal, _, _, _) :- 
     4093%   write('  Current goal: '), writeq(Goal), nl, 
     4094%   fail. 
    40904095 
    40914096'$lgt_dbg_do_port_option'(x, _, _, _, DbgCtx, _) :- 
     
    41144119    write('      q - quit (quits Logtalk)'), nl, 
    41154120    write('      d - display (writes current goal without using operator notation)'), nl, 
     4121%   write('      w - write (writes current goal quoting atoms if necessary)'), nl, 
    41164122    write('      x - context (prints execution context)'), nl, 
    41174123    write('      e - exception (prints exception term thrown by current goal)'), nl,