diff --git a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp index 5c3195aec30..cbb786a2fd1 100644 --- a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp @@ -129,6 +129,8 @@ std::unique_ptr HermesInstance::createJSRuntime( std::unique_ptr hermesRuntime = hermes::makeHermesRuntime(runtimeConfigBuilder.build()); + jsi::addNativeTracingHooks(*hermesRuntime); + #ifdef HERMES_ENABLE_DEBUGGER std::unique_ptr decoratedRuntime = std::make_unique( @@ -136,8 +138,6 @@ std::unique_ptr HermesInstance::createJSRuntime( return decoratedRuntime; #endif - jsi::addNativeTracingHooks(*hermesRuntime); - return hermesRuntime; }