• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Header &lt;boost/test/debug.hpp&gt;</title>
5<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../index.html" title="Boost.Test">
8<link rel="up" href="../../../boost_test/reference.html" title="Reference">
9<link rel="prev" href="../../../BOOST_DATA_TEST_CASE_F.html" title="Macro BOOST_DATA_TEST_CASE_F">
10<link rel="next" href="../../../boost/debug/dbg_startup_info.html" title="Struct dbg_startup_info">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../../../BOOST_DATA_TEST_CASE_F.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_test/reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../boost/debug/dbg_startup_info.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="header.boost.test.debug_hpp"></a>Header &lt;<a href="../../../../../../../boost/test/debug.hpp" target="_top">boost/test/debug.hpp</a>&gt;</h4></div></div></div>
28<p>defines portable debug interfaces </p>
29<p>Intended to standardize interface of programs with debuggers </p>
30<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
31  <span class="keyword">namespace</span> <span class="identifier">debug</span> <span class="special">{</span>
32    <span class="keyword">struct</span> <a class="link" href="../../../boost/debug/dbg_startup_info.html" title="Struct dbg_startup_info">dbg_startup_info</a><span class="special">;</span>
33
34    <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">function</span><span class="special">&lt;</span> <span class="keyword">void</span><span class="special">(</span><a class="link" href="../../../boost/debug/dbg_startup_info.html" title="Struct dbg_startup_info">dbg_startup_info</a> <span class="keyword">const</span>  <span class="special">&amp;</span><span class="special">)</span><span class="special">&gt;</span> <a name="boost.debug.dbg_starter"></a><span class="identifier">dbg_starter</span><span class="special">;</span>  <span class="comment">// Signature of debugger starter routine. Takes an instance of dbg_startup_into as only argument. </span>
35    <span class="keyword">bool</span> <a class="link" href="../../../boost/debug/under_debugger.html" title="Function under_debugger"><span class="identifier">under_debugger</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
36
37    <span class="comment">// Cause program to break execution in debugger at call point. </span>
38    <span class="keyword">void</span> <a name="boost.debug.debugger_break"></a><span class="identifier">debugger_break</span><span class="special">(</span><span class="special">)</span><span class="special">;</span>
39    <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="../../../boost/debug/set_debugger.html" title="Function set_debugger"><span class="identifier">set_debugger</span></a><span class="special">(</span><span class="identifier">unit_test</span><span class="special">::</span><span class="identifier">const_string</span><span class="special">,</span>
40                             <span class="identifier">dbg_starter</span> <span class="special">=</span> <span class="identifier">dbg_starter</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
41    <span class="keyword">bool</span> <a class="link" href="../../../boost/debug/attach_debugger.html" title="Function attach_debugger"><span class="identifier">attach_debugger</span></a><span class="special">(</span><span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
42    <span class="keyword">void</span> <a class="link" href="../../../boost/debug/detect_memory_leaks.html" title="Function detect_memory_leaks"><span class="identifier">detect_memory_leaks</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span>
43                             <span class="identifier">unit_test</span><span class="special">::</span><span class="identifier">const_string</span> <span class="special">=</span> <span class="identifier">unit_test</span><span class="special">::</span><span class="identifier">const_string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
44    <span class="keyword">void</span> <a class="link" href="../../../boost/debug/break_memory_alloc.html" title="Function break_memory_alloc"><span class="identifier">break_memory_alloc</span></a><span class="special">(</span><span class="keyword">long</span><span class="special">)</span><span class="special">;</span>
45  <span class="special">}</span>
46<span class="special">}</span></pre>
47</div>
48<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
49<td align="left"></td>
50<td align="right"><div class="copyright-footer">Copyright © 2001-2020 Boost.Test contributors<p>
51        Distributed under the Boost Software License, Version 1.0. (See accompanying
52        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
53      </p>
54</div></td>
55</tr></table>
56<hr>
57<div class="spirit-nav">
58<a accesskey="p" href="../../../BOOST_DATA_TEST_CASE_F.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_test/reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../boost/debug/dbg_startup_info.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
59</div>
60</body>
61</html>
62