diff --git a/tooling/agent/debugger_impl.cpp b/tooling/agent/debugger_impl.cpp index 26c4a25dda6c7a5ad460af84b108463a51dd3608..9695ca8e6caf79b329e4330c22e02d6ec1607889 100644 --- a/tooling/agent/debugger_impl.cpp +++ b/tooling/agent/debugger_impl.cpp @@ -136,9 +136,6 @@ bool DebuggerImpl::NotifySingleStep(const JSPtLocation &location) singleStepper_.reset(); LOG_DEBUGGER(INFO) << "StepComplete: pause on current byte_code"; - if (!DebuggerApi::GetSingleStepStatus(jsDebugger_)) { - DebuggerApi::SetSingleStepStatus(jsDebugger_, true); - } return true; } @@ -239,15 +236,7 @@ void DebuggerImpl::NotifyPaused(std::optional location, PauseReaso return; } tooling::Paused paused; - if (reason == DEBUGGERSTMT) { - BreakpointDetails detail; - hitBreakpoints.emplace_back(BreakpointDetails::ToString(detail)); - paused.SetCallFrames(std::move(callFrames)) - .SetReason(PauseReason::OTHER) - .SetHitBreakpoints(std::move(hitBreakpoints)); - } else { - paused.SetCallFrames(std::move(callFrames)).SetReason(reason).SetHitBreakpoints(std::move(hitBreakpoints)); - } + paused.SetCallFrames(std::move(callFrames)).SetReason(reason).SetHitBreakpoints(std::move(hitBreakpoints)); if (reason == EXCEPTION && exception->IsError()) { std::unique_ptr tmpException = RemoteObject::FromTagged(vm_, exception); paused.SetData(std::move(tmpException)); @@ -842,7 +831,6 @@ DispatchResponse DebuggerImpl::Resume([[maybe_unused]] const ResumeParams ¶m } frontend_.Resumed(vm_); debuggerState_ = DebuggerState::ENABLED; - DebuggerApi::SetSingleStepStatus(jsDebugger_, false); return DispatchResponse::Ok(); } diff --git a/tooling/backend/js_pt_hooks.cpp b/tooling/backend/js_pt_hooks.cpp index 62dc4b2d771dfdafc404360c885fdb3ff8eb4958..b7afbd0ece46c9b6ae306cb340363f016ca43c1b 100644 --- a/tooling/backend/js_pt_hooks.cpp +++ b/tooling/backend/js_pt_hooks.cpp @@ -22,7 +22,7 @@ void JSPtHooks::DebuggerStmt([[maybe_unused]] const JSPtLocation &location) { LOG_DEBUGGER(VERBOSE) << "JSPHooks: Debugger Statement"; [[maybe_unused]] LocalScope scope(debugger_->vm_); - debugger_->NotifyPaused({}, DEBUGGERSTMT); + debugger_->NotifyPaused({}, OTHER); } void JSPtHooks::Breakpoint(const JSPtLocation &location) diff --git a/tooling/base/pt_events.h b/tooling/base/pt_events.h index 98cbc411ae6c087825176d1dac5316c7a173d5ea..4ebacba27368c9bf52392de804c34f461047b669 100644 --- a/tooling/base/pt_events.h +++ b/tooling/base/pt_events.h @@ -150,12 +150,6 @@ public: case BREAK_ON_START: { return "Break on start"; } - case DEBUGGERSTMT: { - return "Debugger statement"; - } - case STEP: { - return "Step"; - } default: { LOG_DEBUGGER(ERROR) << "Unknown paused reason: " << reason; }