• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
    • RDF quality heuristics
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

12.8.1 Foreign debugging functions
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Notes on Using Foreign Code
          • Foreign debugging functions
            • PL_backtrace()
            • PL_backtrace_string()
            • PL_check_data()
            • PL_check_stacks()
            • prolog_debug/1
            • prolog_nodebug/1
            • PL_prolog_debug()
            • PL_prolog_nodebug()
    • Packages
Availability:C-language interface function
void PL_backtrace(int depth, int flags)
Dump a Prolog backtrace to the user_error stream. Depth is the number of frames to dump. Flags is a bitwise or of the following constants:
PL_BT_SAFE
(0x1) Do not try to print goals. Instead, just print the predicate name and arity. This reduces the likelihood to crash if PL_backtrace() is called in a damaged environment.
PL_BT_USER
(0x2) Only show‘user' frames. Default is to also show frames of hidden built-in predicates.
ClioPatria (version V3.1.1-40-g9d9e003)