Skip to content

Commit 6e55926

Browse files
huntiefortmarek
authored andcommitted
Re-enable direct debugging with JSC on iOS 16.4+ (#37914)
Summary: Pull Request resolved: #37914 Restores #37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android. Changelog: None Reviewed By: cortinico Differential Revision: D46762984 fbshipit-source-id: 6d56f81b9d0c928887860993b2b729ed96c0734c
1 parent 37de064 commit 6e55926

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ReactCommon/jsc/JSCRuntime.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx)
396396
stringCounter_(0)
397397
#endif
398398
{
399+
#ifndef NDEBUG
400+
#ifdef TARGET_OS_MAC
401+
if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
402+
JSGlobalContextSetInspectable(ctx_, true);
403+
}
404+
#endif
405+
#endif
399406
}
400407

401408
JSCRuntime::~JSCRuntime() {

0 commit comments

Comments
 (0)