| Index: runtime/vm/exceptions.cc
|
| diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
|
| index 29f16848f17ccaeec0c97f737240493543103b59..67344d7584969f3a8b359a143d0a3d47c87ff9b7 100644
|
| --- a/runtime/vm/exceptions.cc
|
| +++ b/runtime/vm/exceptions.cc
|
| @@ -489,11 +489,13 @@ void Exceptions::Throw(Thread* thread, const Instance& exception) {
|
| // Do not notify debugger on stack overflow and out of memory exceptions.
|
| // The VM would crash when the debugger calls back into the VM to
|
| // get values of variables.
|
| +#ifndef PRODUCT
|
| Isolate* isolate = thread->isolate();
|
| if (exception.raw() != isolate->object_store()->out_of_memory() &&
|
| exception.raw() != isolate->object_store()->stack_overflow()) {
|
| isolate->debugger()->SignalExceptionThrown(exception);
|
| }
|
| +#endif // !PRODUCT
|
| // Null object is a valid exception object.
|
| ThrowExceptionHelper(thread, exception,
|
| Stacktrace::Handle(thread->zone()), false);
|
|
|