- swipl
- library
- error.pl
- debug.pl
- apply.pl
- lists.pl
- broadcast.pl
- shlib.pl
- option.pl
- thread_pool.pl -- Resource bounded thread management
- gensym.pl
- settings.pl -- Setting management
- arithmetic.pl
- main.pl
- 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
- record.pl
- prolog_xref.pl
- occurs.pl
- ordsets.pl -- Ordered set manipulation
- assoc.pl -- Binary associations
- ugraphs.pl
- solution_sequences.pl
- atom.pl
- prolog_pack.pl
- git.pl
- ctypes.pl
- utf8.pl
- base64.pl
- persistency.pl
- pure_input.pl
- nb_set.pl
- aggregate.pl
- csv.pl -- Process CSV (Comma-Separated Values) data
- iostream.pl -- Utilities to deal with streams
- dialect.pl
- apply_macros.pl -- Goal expansion rules to avoid meta-calling
- yall.pl -- Lambda expressions
- 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 -- Red black trees
- nb_rbtrees.pl
- sandbox.pl
- prolog_format.pl -- Analyse format specifications
- random.pl
- pprint.pl
- modules.pl
- lazy_lists.pl -- Lazy list handling
- edinburgh.pl
- prolog_clause.pl
- prolog_breakpoints.pl
- dicts.pl
- backcomp.pl
- date.pl
- oset.pl
- prolog_profile.pl
- listing.pl
- quintus.pl
- optparse.pl
- prolog_jiti.pl
- make.pl
- terms.pl -- Term manipulation
- threadutil.pl -- Interactive thread utilities
- varnumbers.pl
- ansi_term.pl
- zip.pl -- Access resource ZIP archives
- tableutil.pl -- Table inspection and statistics utilities
- charsio.pl
- prolog_trace.pl -- Print access to predicates
- shell.pl
- hashtable.pl
- prolog_stack.pl
- strings.pl
- heaps.pl
- prolog_coverage.pl
- system.pl
- writef.pl
- prolog_versions.pl
- prolog_codewalk.pl
- prolog_debug.pl -- User level debugging tools
- statistics.pl
- macros.pl
- files.pl
- coinduction.pl
- edit.pl
- check.pl
- intercept.pl
- prolog_config.pl
- help.pl -- Text based manual
- wfs.pl
- qsave.pl
- tables.pl
- increval.pl
- base32.pl
- codesio.pl
- sort.pl
- when.pl
- prolog_autoload.pl
- prolog_history.pl
- streams.pl -- Manage Prolog streams
- tty.pl
- portray_text.pl -- Portray text
- prolog_metainference.pl
- prolog_wrap.pl -- Wrapping predicates
- 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).