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

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
        • debug_print_hook/3
        • assertion_failed/2
        • debugging/1
        • debugging/2
        • debug/1
        • nodebug/1
        • list_debug_topics/0
        • list_debug_topics/1
        • debug_message_context/1
        • debug/3
        • assertion/1
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl -- Access compound arguments by name
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl
      • random.pl
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl
      • yall.pl
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl
      • prolog_format.pl
      • predicate_options.pl
      • csv.pl
      • pprint.pl
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl -- Prolog syntax colouring support.
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl
      • url.pl -- Analysing and constructing URL
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • utf8.pl
      • dialect.pl
      • system.pl -- System utilities
      • terms.pl
      • date.pl
      • persistency.pl
      • iostream.pl -- Utilities to deal with streams
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • prolog_code.pl
      • sort.pl
      • dicts.pl
      • dif.pl -- The dif/2 constraint
      • varnumbers.pl
      • pio.pl
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • prolog_profile.pl
      • prolog_coverage.pl
      • base32.pl -- Base32 encoding and decoding
      • charsio.pl
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl
      • heaps.pl -- heaps/priority queues
      • rbtrees.pl
      • statistics.pl
      • when.pl
      • backcomp.pl
      • oset.pl
      • strings.pl
      • fastrw.pl
      • optparse.pl
      • make.pl
      • nb_set.pl
      • prolog_autoload.pl
      • check.pl -- Consistency checking
      • prolog_codewalk.pl -- Prolog code walker
      • thread.pl -- High level thread primitives
      • threadutil.pl -- Interactive thread utilities
      • ctypes.pl -- Character code classification
      • increval.pl
      • tables.pl
      • prolog_metainference.pl -- Infer meta-predicate properties
      • zip.pl
      • explain.pl
      • streams.pl -- Manage Prolog streams
      • prolog_debug.pl
      • prolog_wrap.pl
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • listing.pl -- List programs and pretty print clauses
      • shell.pl
      • writef.pl -- Old-style formatted write
      • edit.pl -- Editor interface
      • intercept.pl
      • prolog_trace.pl -- Print access to predicates
      • help.pl
      • quintus.pl
      • rwlocks.pl
      • macros.pl
      • portray_text.pl
      • prolog_config.pl
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • qsave.pl
      • prolog_history.pl
      • hashtable.pl
      • exceptions.pl
      • tty.pl
      • readln.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.