12.4.1.3 Implementing a yield based debugger
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Argument Passing and Control
            • Implementing a yield based debugger
              • PL_get_trace_context()
              • PL_set_trace_action,term_t+action()
    • Packages
Availability:C-language interface function
bool PL_get_trace_context(term_t -msg)
Unify msg with a Prolog term of the following shape: frame(Frame, Choice, Port, PC). This provides the same information as passed to prolog_trace_interception/4. The additional PC argument provides the program counter in the executing clause. The msg term may be passed to print_message/2 to print the current port and goal, similarly to the commandline debugger.