[#BloombergLP-balst-StackTracePrintUtil_Test-printStackTraceToString]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTracePrintUtil_Test.adoc[StackTracePrintUtil&lowbar;Test]::printStackTraceToString
:relfileprefix: ../../../
:mrdocs:

Obtain a stack trace and assign a description of the stack to the specified `string`&period; Note that this method is for testing only, and must be declared inline in an include file in order to test source file name resolution of a routine in an include file&period;

== Synopsis

Declared in `&lt;balst&lowbar;stacktraceprintutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
printStackTraceToString(xref:bsl/string.adoc[bsl::string]* string);
----


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