public final CodeWriterDebugInfo getDebugInfo() {
        return getDebugInfo(2);
    }
Gets debug information about the current state of the AbstractCodeWriter, including
the path to the current state as returned by {@link #getStateDebugPath()},
and up to the last two lines of text written to the AbstractCodeWriter.

<p>This debug information is used in most exceptions thrown by AbstractCodeWriter to
provide additional context when something goes wrong. It can also be used
by subclasses and collaborators to aid in debugging codegen issues.

@return Returns debug info as a string.
@see #getDebugInfo(int)
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java