- swipl
- library
- error.pl
- debug.pl
- apply.pl -- Apply predicates on a list
- lists.pl
- broadcast.pl
- shlib.pl
- option.pl
- thread_pool.pl
- gensym.pl -- Generate unique symbols
- settings.pl
- arithmetic.pl
- main.pl -- Provide entry point for scripts
- readutil.pl
- operators.pl -- Manage operators
- pairs.pl
- prolog_source.pl
- quasi_quotations.pl
- url.pl
- www_browser.pl -- Open a URL in the users browser
- prolog_colour.pl -- Prolog syntax colouring support.
- record.pl
- prolog_xref.pl
- occurs.pl -- Finding and counting sub-terms
- ordsets.pl
- assoc.pl -- Binary associations
- ugraphs.pl
- solution_sequences.pl -- Modify solution sequences
- atom.pl
- prolog_pack.pl -- A package manager for Prolog
- git.pl -- Run GIT commands
- ctypes.pl
- utf8.pl
- base64.pl -- Base64 encoding and decoding
- persistency.pl -- Provide persistent dynamic predicates
- pure_input.pl
- nb_set.pl
- aggregate.pl -- Aggregation operators on backtrackable predicates
- csv.pl -- Process CSV (Comma-Separated Values) data
- iostream.pl -- Utilities to deal with streams
- dialect.pl -- Support multiple Prolog dialects
- apply_macros.pl -- Goal expansion rules to avoid meta-calling
- yall.pl
- prolog_code.pl -- Utilities for reasoning about code
- dif.pl -- The dif/2 constraint
- thread.pl -- High level thread primitives
- predicate_options.pl
- rbtrees.pl
- nb_rbtrees.pl
- sandbox.pl
- prolog_format.pl -- Analyse format specifications
- random.pl -- Random numbers
- pprint.pl -- Pretty Print Prolog terms
- modules.pl -- Module utility predicates
- lazy_lists.pl
- edinburgh.pl -- Some traditional Edinburgh predicates
- prolog_clause.pl
- prolog_breakpoints.pl -- Manage Prolog break-points
- dicts.pl -- Dict utilities
- prolog_history.pl -- Per-directory persistent commandline history
- prolog_config.pl
- ansi_term.pl
- prolog_stack.pl -- Examine the Prolog stack
- tables.pl
- backcomp.pl -- Backward compatibility
- optparse.pl
- strings.pl -- String utilities
- prolog_jiti.pl
- listing.pl -- List programs and pretty print clauses
- wfs.pl -- Well Founded Semantics interface
- prolog_coverage.pl -- Coverage analysis tool
- check.pl
- prolog_codewalk.pl -- Prolog code walker
- date.pl
- prolog_profile.pl -- Execution profiler
- charsio.pl
- macros.pl
- terms.pl
- oset.pl -- Ordered set manipulation
- quintus.pl
- base32.pl -- Base32 encoding and decoding
- codesio.pl
- coinduction.pl -- Co-Logic Programming
- heaps.pl -- heaps/priority queues
- sort.pl
- statistics.pl
- varnumbers.pl -- Utilities for numbered terms
- when.pl
- system.pl -- System utilities
- qsave.pl
- zip.pl
- prolog_autoload.pl -- Autoload all dependencies
- prolog_metainference.pl
- prolog_versions.pl -- Demand specific (Prolog) versions
- make.pl
- edit.pl
- fastrw.pl
- rwlocks.pl
- increval.pl
- prolog_wrap.pl
- streams.pl
- prolog_debug.pl
- hashtable.pl
- files.pl
- threadutil.pl -- Interactive thread utilities
- writef.pl
- help.pl -- Text based manual
- intercept.pl
- shell.pl
- tableutil.pl
- prolog_qlfmake.pl -- Compile the library to QLF format
- exceptions.pl
- prolog_trace.pl
- portray_text.pl
- library
- tdebug is det
- tdebug(+ThreadOrClass) is det
- tnodebug is det
- tnodebug(+ThreadOrClass) is det
- Enable or disable a thread or group of threads for debugging using
the graphical tracer. A group of threads is addressed based on the
classproperty of a thread set by thread_create/3 or set_thread/2. This implies loading the graphical tracer and switching the thread to debug mode using debug/0. New threads created inherit their debug mode from the thread that created them.Thread classes have been introduced in SWI-Prolog 10.0.2/10.1.5. This allows for more selective debugging as well as ensuring debugging works in newly created threads. For example, the HTTP server creates all its worker threads in the class
http. Using query below, we reliable make sure spy points are trapped in HTTP handler threads, regardless of whether the worker existed or is lazily created and regardless of whether the user switched to nodebug mode while tracing a previous event (see debug_reset_from_class/0).?- tdebug(http).