Skip to content

Commit

Permalink
Enable debugging in debug build (#38205)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Matt Blagden authored and facebook-github-bot committed Jul 6, 2023
1 parent 5f84d73 commit 41477c8
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 41477c8

Please sign in to comment.