FLEX-34046: prints full stack if Flash Player detects not handled exception


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/f3d1ac08
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/f3d1ac08
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/f3d1ac08

Branch: refs/heads/develop
Commit: f3d1ac08380a26c51ac1317fb8a13e41c371e2a9
Parents: fde5f97
Author: Frédéric Thomas <[email protected]>
Authored: Thu Jan 16 12:29:06 2014 +0000
Committer: Frédéric Thomas <[email protected]>
Committed: Thu Jan 16 12:29:06 2014 +0000

----------------------------------------------------------------------
 .../src/java/flex/tools/debugger/cli/DebugCLI.java        | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f3d1ac08/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
----------------------------------------------------------------------
diff --git a/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java 
b/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
index cd53c05..e44f9a3 100644
--- a/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
+++ b/modules/debugger/src/java/flex/tools/debugger/cli/DebugCLI.java
@@ -2348,6 +2348,11 @@ public class DebugCLI implements Runnable, SourceLocator
                        
sb.append(getLocalizationManager().getLocalizedTextString("linePrefixWhenDisplayingConsoleError"));
 //$NON-NLS-1$
                        sb.append(' ');
                        sb.append(e.information);
+
+            final String stackTrace = e.stackTrace();
+            if (stackTrace != null && stackTrace.length() > 0) {
+                sb.append("\n").append(stackTrace);
+            }
                }
                else
                {
@@ -2360,6 +2365,11 @@ public class DebugCLI implements Runnable, SourceLocator
                                
sb.append(getLocalizationManager().getLocalizedTextString("informationAboutFault"));
 //$NON-NLS-1$
                                sb.append(e.information);
                        }
+
+            final String stackTrace = e.stackTrace();
+            if (stackTrace != null && stackTrace.length() > 0) {
+                sb.append("\n").append(stackTrace);
+            }
                }
                out( sb.toString() );
        }

Reply via email to