]> source.dussan.org Git - vaadin-framework.git/commitdiff
Print stack traces to console when in GWT Dev Mode
authorArtur Signell <artur@vaadin.com>
Tue, 10 Apr 2012 06:13:13 +0000 (09:13 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 10 Apr 2012 06:13:13 +0000 (09:13 +0300)
At least for now

src/com/vaadin/terminal/gwt/client/VDebugConsole.java

index f28af4040d4c7d2e06a390ebb6a939945d341a11..fea777ff72e43c19baf5b1e43f76ad05da1cc2cd 100644 (file)
@@ -634,6 +634,10 @@ public class VDebugConsole extends VOverlay implements Console {
         }
         error(Util.getSimpleName(e) + ": " + e.getMessage());
         GWT.log(e.getMessage(), e);
+        if (!GWT.isProdMode()) {
+            e.printStackTrace();
+        }
+
     }
 
     public void init() {