[#BloombergLP-balst-StackTracePrintUtil_Test-printStackTraceToString] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTracePrintUtil_Test.adoc[StackTracePrintUtil_Test]::printStackTraceToString :relfileprefix: ../../../ :mrdocs: Obtain a stack trace and assign a description of the stack to the specified `string`. 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. == Synopsis Declared in `<balst_stacktraceprintutil.h>` [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]#