Extended Debugging

version 2/100212 by Erik Temple

  • Home page
  • Beginning
  • Previous



  • Chapter - Custom rule-tracing (Ron Newcomb)

    [Thanks to Ron Newcomb for providing the custom rule-tracing code.]

    To enable brief/-- rule-tracing for (R - a rule):
        (- if (debug_rules) DB_Rule({R}, {R}); -).

    To enable intensive rule-tracing only/-- for (R - a rule):
        (- if (debug_rules >= 2) DB_Rule({R}, {R}); -).

    Include (- Global save_debug_rules; -) after "Definitions.i6t".

    To suspend rule-tracing:
        (- save_debug_rules = debug_rules; debug_rules = 0; -).

    To re-enable rule-tracing:
        (- debug_rules = save_debug_rules; -).


    Extended Debugging ends here.