Closed lunaleaps closed 3 years ago
I made a quick investigation, but I don't know this part of the codebase. Sorry
https://github.com/facebook/react-native/tree/main/ReactCommon/hermes/inspector/chrome
- (BOOL)isRemoteDebuggingAvailable
{
if (RCTTurboModuleEnabled()) {
return NO;
}
Class jsDebuggingExecutorClass = objc_lookUpClass("RCTWebSocketExecutor");
return (jsDebuggingExecutorClass != nil);
}
https://github.com/facebook/react-native/commit/75f2da23c5d557862cf4b7bcdd8a1445b54d1c31
public void setRemoteJSDebugEnabled(final boolean isRemoteJSDebugEnabled) {
if (!mIsDevSupportEnabled) {
return;
}
UiThreadUtil.runOnUiThread(
new Runnable() {
@Override
public void run() {
mDevSettings.setRemoteJSDebugEnabled(isRemoteJSDebugEnabled);
handleReloadJS();
}
});
}
@fabriziobertoglio1987 that code is for the old "Chrome debugging flow", not for Flipper debugger for Hermes
@fkgozali can we add Hermes debugging in devsetting cmd+D instead of React Native Experiment inspect?
Closing off since we are deprecating the repo - if the problem persists please open an issue either in react-native core, or the hermes repo.
Version
0.66.0-rc.2
Developer Environment
macOS, Intel,
Issue and Reproduction Steps
When attempting to set breakpoints in devtools they are not hitting but
debugger
statements do.Steps to repro:
npx react-native init --version 0.66.0-rc.2 MyTestProject662
and start metronpm start
Expected:
Note: