Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 9c5cafbdecaf34e45cff37f77487d711df08fa70..cf0f3b38aebcbffaad32b1c70e4bdf8977e4b2ca 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1877,6 +1877,10 @@ void Isolate::Deinit() { |
if (state_ == INITIALIZED) { |
TRACE_ISOLATE(deinit); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ debugger()->UnloadDebugger(); |
+#endif |
+ |
if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Stop(); |
if (FLAG_sweeper_threads > 0) { |