ocaml-containers/dev/containers/CCParse/Debug_/index.html
2023-11-13 19:39:32 +00:00

2 lines
3.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Debug_ (containers.CCParse.Debug_)</title><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../index.html">containers</a> &#x00BB; <a href="../index.html">CCParse</a> &#x00BB; Debug_</nav><header class="odoc-preamble"><h1>Module <code><span>CCParse.Debug_</span></code></h1><p>Debugging utils. <b>EXPERIMENTAL</b></p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 3.6</li></ul></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-trace_fail"><a href="#val-trace_fail" class="anchor"></a><code><span><span class="keyword">val</span> trace_fail : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>trace_fail name p</code> behaves like <code>p</code>, but prints the error message of <code>p</code> on stderr whenever <code>p</code> fails.</p><ul class="at-tags"><li class="parameter"><span class="at-tag">parameter</span> <span class="value">name</span> <p>used as a prefix of all trace messages.</p></li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-trace_success"><a href="#val-trace_success" class="anchor"></a><code><span><span class="keyword">val</span> trace_success : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span class="label">print</span>:<span>(<span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> string)</span> <span class="arrow">&#45;&gt;</span></span> <span><span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>trace_success name ~print p</code> behaves like <code>p</code>, but prints successful runs of <code>p</code> using <code>print</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-trace_success_or_fail"><a href="#val-trace_success_or_fail" class="anchor"></a><code><span><span class="keyword">val</span> trace_success_or_fail : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span class="label">print</span>:<span>(<span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> string)</span> <span class="arrow">&#45;&gt;</span></span> <span><span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span></span></code></div><div class="spec-doc"><p>Trace both error or success</p></div></div></div></body></html>