| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 900821beaf0471fee3f0f5bb68ba9dfcb866e4ea..0af63f61fdcd63ea3731250c6726d6bf9da46fed 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -805,6 +805,8 @@ bool Debug::Load() {
|
|
|
|
|
| void Debug::Unload() {
|
| + ClearAllBreakPoints();
|
| +
|
| // Return debugger is not loaded.
|
| if (!IsLoaded()) return;
|
|
|
| @@ -3150,7 +3152,6 @@ void Debugger::UpdateState() {
|
| activate = debug->Load();
|
| } else if (debug->IsLoaded() && !activate) {
|
| isolate_->compilation_cache()->Enable();
|
| - debug->ClearAllBreakPoints();
|
| debug->Unload();
|
| }
|
| is_active_ = activate;
|
|
|