From 75671cc117e606d6d388b3bca82e15c2549a092c Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Fri, 22 Aug 2025 20:11:41 +0800 Subject: [PATCH] Enable hermes debugger on all build variants --- .../ReactCommon/jsinspector-modern/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/jsinspector-modern/CMakeLists.txt b/packages/react-native/ReactCommon/jsinspector-modern/CMakeLists.txt index 67168982baaa..8924d50a2b32 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/CMakeLists.txt +++ b/packages/react-native/ReactCommon/jsinspector-modern/CMakeLists.txt @@ -28,6 +28,9 @@ target_link_libraries(jsinspector ) target_compile_reactnative_options(jsinspector PRIVATE) target_compile_options(jsinspector PRIVATE - $<$:-DREACT_NATIVE_DEBUGGER_ENABLED=1> - $<$:-DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1> + # Expo Go requires debugging on release builds + -DREACT_NATIVE_DEBUGGER_ENABLED=1 + -DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1 + # $<$:-DREACT_NATIVE_DEBUGGER_ENABLED=1> + # $<$:-DREACT_NATIVE_DEBUGGER_ENABLED_DEVONLY=1> )