Experimental function to print a stack trace.