Skip to content

Commit 41477c8

Browse files
Matt Blagdenfacebook-github-bot
Matt Blagden
authored andcommitted
Enable debugging in debug build (#38205)
Summary: Pull Request resolved: #38205 Enable the preprocessor flag to allow debugging when in a debug build. This flag influences the Hermes headers included in the inspector, and causes them to include the debugging functionality. Changelog: [General][Fixed] - Re-enabled debugging for debug builds Reviewed By: lunaleaps, cortinico Differential Revision: D47243235 fbshipit-source-id: 7982c69ab554335a9ad985394e4416ed69831137
1 parent 5f84d73 commit 41477c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/react-native/ReactCommon/hermes/inspector/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ target_compile_options(
2020
-fexceptions
2121
)
2222

23+
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
24+
target_compile_options(
25+
hermes_inspector
26+
PRIVATE
27+
-DHERMES_ENABLE_DEBUGGER=1
28+
)
29+
endif()
30+
2331
target_include_directories(hermes_inspector PUBLIC ${REACT_COMMON_DIR})
2432
target_link_libraries(hermes_inspector
2533
jsinspector

0 commit comments

Comments
 (0)