Add stacktrace debug output