Skip to content

Commit

Permalink
Enable debugging in debug build
Browse files Browse the repository at this point in the history
Summary:
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

Differential Revision: D47243235

fbshipit-source-id: 3188f04de5eab8b34644a84c93083ea7a016be47
  • Loading branch information
Matt Blagden authored and facebook-github-bot committed Jul 5, 2023
1 parent 5f84d73 commit f18ca7d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f18ca7d

Please sign in to comment.