_socket_acceptor.debug.examples"></a></span><a class="link" href="debug.html#boost_asio.reference.basic_socket_acceptor.debug.examples">Examples</a>
        </h6>
<p>
          Setting the option:
        </p>
<pre class="programlisting">boost::asio::ip::tcp::socket socket(io_context);
...
boost::asio::socket_base::debug option(true);
socket.set_option(option);
</pre>
<p>
          Getting the current option value:
        </p>
<pre class="programlisting">boost::asio::ip::tcp::socket socket(io_context);
...