package base
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0aa8fa8778412c67c38d40e9859bfa5871c4f9c25991f09fea201ae6aaf1d0d9
md5=7150e848a730369a2549d01645fb6c72
doc/base/Base/Backtrace/index.html
Module Base.Backtrace
Module for managing stack backtraces.
The Backtrace module deals with two different kinds of backtraces:
- Snapshots of the stack obtained on demand (
Backtrace.get) - The stack frames unwound when an exception is raised (
Backtrace.Exn)
A Backtrace.t is a snapshot of the stack obtained by calling Backtrace.get. It is represented as a string with newlines separating the frames. sexp_of_t splits the string at newlines and removes some of the cruft, leaving a human-friendly list of frames, but to_string does not.
val get : ?at_most_num_frames:int -> unit -> tval to_string : t -> stringval to_string_list : t -> string listval elide : bool Caml.refThe value of elide controls the behavior of backtrace serialization functions such as to_string, to_string_list, and sexp_of_t. When set to false, these functions behave as expected, returning a faithful representation of their argument. When set to true, these functions will ignore their argument and return a message indicating that behavior.
The default value is am_testing.
module Exn : sig ... endBacktrace.Exn has functions for controlling and printing the backtrace of the most recently raised exception.