From 48c06acef5914dae9ee23e92f87ca79c4af07057 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 11 Dec 2018 08:28:07 -0800 Subject: [PATCH] new debug util method --- .../app/src/main/java/org/eehouse/android/xw4/DbgUtils.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java index 67d237f6a..96ab11ec7 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java @@ -126,6 +126,12 @@ public class DbgUtils { } } + public static void printStack( String tag, Exception ex ) + { + String stackTrace = android.util.Log.getStackTraceString(ex); + Log.d( tag, stackTrace ); + } + static String extrasToString( Intent intent ) { Bundle bundle = intent.getExtras();