mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable debugging in debug build (#38205)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5f84d7338f
commit
41477c898c
@@ -20,6 +20,14 @@ target_compile_options(
|
||||
-fexceptions
|
||||
)
|
||||
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
||||
target_compile_options(
|
||||
hermes_inspector
|
||||
PRIVATE
|
||||
-DHERMES_ENABLE_DEBUGGER=1
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(hermes_inspector PUBLIC ${REACT_COMMON_DIR})
|
||||
target_link_libraries(hermes_inspector
|
||||
jsinspector
|
||||
|
||||
Reference in New Issue
Block a user