Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index a15b1cf345ee00f6740e7e412aee7a745359ffa1..4dc70bff4c0a37f0f04ac7db0d62ecc9cb4c7b14 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1070,6 +1070,15 @@ Object* Isolate::Throw(Object* exception, MessageLocation* location) { |
HandleScope scope(this); |
Handle<Object> exception_handle(exception, this); |
+ if (FLAG_print_all_exceptions) { |
+ printf("=========================================================\n"); |
+ printf("Exception thrown:\n"); |
+ exception->Print(); |
+ printf("Stack Trace:\n"); |
+ PrintStack(stdout); |
+ printf("=========================================================\n"); |
+ } |
+ |
// Determine whether a message needs to be created for the given exception |
// depending on the following criteria: |
// 1) External v8::TryCatch missing: Always create a message because any |