Skip to content

Commit a5d2739

Browse files
authored
[JSCRuntime] Only enable the JSC debugging in DEBUG by default (#1979)
1 parent 1446ad3 commit a5d2739

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

React/CxxBridge/JSCExecutorFactory.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ class JSCExecutorFactory : public JSExecutorFactory {
3131
JSIExecutor::RuntimeInstaller runtimeInstaller_;
3232

3333
// [macOS
34+
#if DEBUG
3435
bool enableDebugger_ = true;
36+
#else
37+
bool enableDebugger_ = false;
38+
#endif
3539
std::string debuggerName_ = "JSC React Native";
3640
// macOS]
3741
};

0 commit comments

Comments
 (0)