/usr/local/lib/swipl/library/debug.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
        • debugging/1
        • debugging/2
        • debug/1
        • nodebug/1
        • list_debug_topics/0
        • list_debug_topics/1
        • debug_message_context/1
        • debug/3
        • assertion/1
        • debug_print_hook/3
        • assertion_failed/2
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl -- Extensible arithmetic
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl -- Examine Prolog source-files
      • record.pl
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl
      • ordsets.pl
      • random.pl
      • base64.pl
      • aggregate.pl
      • yall.pl -- Lambda expressions
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl
      • prolog_format.pl -- Analyse format specifications
      • predicate_options.pl
      • csv.pl
      • pprint.pl -- Pretty Print Prolog terms
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl
      • ugraphs.pl
      • url.pl
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • rbtrees.pl
      • dif.pl
      • charsio.pl
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • dialect.pl
      • prolog_code.pl
      • sort.pl
      • iostream.pl -- Utilities to deal with streams
      • dicts.pl
      • varnumbers.pl
      • ansi_term.pl
      • base32.pl
      • codesio.pl
      • coinduction.pl -- Co-Logic Programming
      • date.pl
      • heaps.pl -- heaps/priority queues
      • statistics.pl -- Get information about resource usage
      • terms.pl
      • utf8.pl
      • when.pl
      • backcomp.pl
      • quintus.pl
      • shell.pl -- Elementary shell commands
      • prolog_autoload.pl
      • check.pl
      • make.pl -- Reload modified source files
      • help.pl
      • listing.pl -- List programs and pretty print clauses
      • prolog_codewalk.pl -- Prolog code walker
      • ctypes.pl -- Character code classification
      • increval.pl
      • tables.pl
      • portray_text.pl
      • writef.pl
      • prolog_coverage.pl
      • nb_set.pl
      • explain.pl
      • prolog_jiti.pl
      • prolog_profile.pl -- Execution profiler
      • threadutil.pl -- Interactive thread utilities
      • thread.pl
      • files.pl
      • qsave.pl -- Save current program as a state or executable
      • zip.pl
      • edit.pl
      • prolog_debug.pl
      • prolog_versions.pl
      • strings.pl
      • optparse.pl
      • prolog_trace.pl
      • intercept.pl -- Intercept and signal interface
      • fastrw.pl
      • persistency.pl
      • rwlocks.pl
      • exceptions.pl
      • macros.pl
      • prolog_metainference.pl
      • prolog_wrap.pl
 prolog:assertion_failed(+Reason, +Goal) is semidet[multifile, library(debug)]
This hook is called if the Goal of assertion/1 fails. Reason is unified with either fail if Goal simply failed or an exception call otherwise. If this hook fails, the default behaviour is activated. If the hooks throws an exception it will be propagated into the caller of assertion/1.