From d1d6ff45015a3d96afa6bbe001a1de0de1838fcc Mon Sep 17 00:00:00 2001 From: renjh5496 Date: Thu, 25 Jun 2026 17:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=BF=9B=E7=A8=8B=E4=B8=8D=E6=B3=A8?= =?UTF-8?q?=E5=86=8Cpid=E4=B8=8D=E8=BF=9B=E8=A1=8Cattach?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Agent Signed-off-by: renjh5496 --- frameworks/native/appkit/app/child_main_thread.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frameworks/native/appkit/app/child_main_thread.cpp b/frameworks/native/appkit/app/child_main_thread.cpp index cd30db6ed2..cc1a33cb29 100644 --- a/frameworks/native/appkit/app/child_main_thread.cpp +++ b/frameworks/native/appkit/app/child_main_thread.cpp @@ -300,16 +300,9 @@ void ChildMainThread::HandleLoadNative() return; } ChildProcessManager &childProcessMgr = ChildProcessManager::GetInstance(); - AbilityRuntime::Runtime::DebugOption debugOption; - childProcessMgr.SetAppSpawnForkDebugOption(debugOption, processInfo_); - TAG_LOGD(AAFwkTag::APPKIT, "StartDebugMode, isStartWithDebug is %{public}d, processName is %{public}s, " - "isDebugApp is %{public}d, isStartWithNative is %{public}d", processInfo_->isStartWithDebug, - processInfo_->processName.c_str(), processInfo_->isDebugApp, processInfo_->isStartWithNative); - AbilityRuntime::NativeRuntime::StartDebugMode(debugOption, processInfo_->bundleName); childProcessMgr.LoadNativeLibWithArgs(nativeLibModuleName_, processInfo_->srcEntry, processInfo_->entryFunc, processArgs_); TAG_LOGD(AAFwkTag::APPKIT, "HandleLoadNative end."); - AbilityRuntime::NativeRuntime::StopDebugMode(); ExitProcessSafely(); } @@ -412,14 +405,7 @@ void ChildMainThread::HandleRunNativeProc(const sptr &mainProcess } ChildProcessManager &childProcessMgr = ChildProcessManager::GetInstance(); - AbilityRuntime::Runtime::DebugOption debugOption; - childProcessMgr.SetAppSpawnForkDebugOption(debugOption, processInfo_); - TAG_LOGD(AAFwkTag::APPKIT, "StartDebugMode, isStartWithDebug is %{public}d, processName is %{public}s, " - "isDebugApp is %{public}d, isStartWithNative is %{public}d", processInfo_->isStartWithDebug, - processInfo_->processName.c_str(), processInfo_->isDebugApp, processInfo_->isStartWithNative); - AbilityRuntime::NativeRuntime::StartDebugMode(debugOption, processInfo_->bundleName); childProcessMgr.LoadNativeLib(nativeLibModuleName_, processInfo_->srcEntry, mainProcessCb); - AbilityRuntime::NativeRuntime::StopDebugMode(); ExitProcessSafely(); }