From 2e9c1ad45e68174e79c24f86c73c333968b06a7e Mon Sep 17 00:00:00 2001 From: dengwenjun Date: Mon, 9 Jun 2025 14:47:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DsmartStepInto=E8=B0=83?= =?UTF-8?q?=E8=AF=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化设置断点函数的公用逻辑 Issue:https://gitee.com/openharmony/arkcompiler_toolchain/issues/ICDOAA Signed-off-by: dengwenjun --- tooling/agent/debugger_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/agent/debugger_impl.cpp b/tooling/agent/debugger_impl.cpp index 1b201f98..d2b52151 100755 --- a/tooling/agent/debugger_impl.cpp +++ b/tooling/agent/debugger_impl.cpp @@ -1464,8 +1464,9 @@ DispatchResponse DebuggerImpl::SetBreakpointByUrl(const SetBreakpointByUrlParams } return DebuggerApi::SetBreakpoint(jsDebugger_, location, condFuncRef, isSmartBreakpoint); }; + std::string methodName = params.HasMethodName() ? params.GetMethodName() : ""; if (!extractor->MatchWithLocation(callbackFunc, lineNumber, columnNumber, url, GetRecordName(url), - isSmartBreakpoint, params.GetMethodName())) { + isSmartBreakpoint, methodName)) { LOG_DEBUGGER(ERROR) << "failed to set breakpoint location number: " << lineNumber << ":" << columnNumber; return DispatchResponse::Fail("Breakpoint not found."); -- Gitee