[#BloombergLP-bsls-Assert-failBySleep]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Assert.adoc[Assert]::failBySleep
:relfileprefix: ../../../
:mrdocs:

Use the expression `comment`, `file` name, and `line` number from the specified `violation` to generate a helpful output message and then, after logging, spin in an infinite loop&period; Note that this handler function is useful for hanging a process so that a debugger may be attached to it&period;

== Synopsis

Declared in `&lt;bsls&lowbar;assert&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;noreturn&rsqb;&rsqb;
static
void
failBySleep(xref:BloombergLP/bsls/AssertViolation.adoc[AssertViolation] const& violation);
----

== Return Value

[NOTE]
====
This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
