Cannot find a remote target in Chrome while debugging the app with Hermes #9087
Replies: 5 comments 3 replies
-
Hi, I found out that this behavior started to reproduce after this change. It seems that |
Beta Was this translation helpful? Give feedback.
-
Can you try connecting using port 9223? |
Beta Was this translation helpful? Give feedback.
-
@acoates-ms I tried to connect to the port 9223, but it seems to be unavailable. Also I found out that if I change this condition in - if (m_devSettings->jsiEngineOverride == JSIEngineOverride::Hermes && m_devSettings->useDirectDebugger && !m_devSettings->useWebDebugger)
+ if (m_devSettings->jsiEngineOverride == JSIEngineOverride::Default && m_devSettings->useDirectDebugger && !m_devSettings->useWebDebugger) then it will be possible to enable Hermes debugger and connect to it from Google Chrome. |
Beta Was this translation helpful? Give feedback.
-
@mganandraj - It looks like the logic in here should use some logic to determine the engine being used. The jsiEngineOverride property shouldn't be used to detect if its hermes, since default might also mean hermes. |
Beta Was this translation helpful? Give feedback.
-
I'm also having this issue in 2023 using RN 0.70 ! |
Beta Was this translation helpful? Give feedback.
-
Hi I am a member of the
vscode-react-native
development team. We tested Hermes debugging of the recent versions of React Native for Windows and found out that forreact-native-windows v0.66.2
and newer, we couldn't find a debuggable target for the app in the Google Chrome inspect page (chrome://inspect
). We configure the project in accordance with official guides: here and here. Here is our steps to reproduce this behavior:npx react-native init <projectName> --template react-native@^0.66.0
commandnpx react-native-windows-init --overwrite --useHermes
commandnpx react-native run-windows --direct-debugging
commandchrome://inspect
) and check for debuggable targetsWe also found out that this problem isn't reproduced in an application with
react-native-windows v0.66.0
. We would like to ask you if it may be a bug, or something has been changed in apps configuration steps and we need to customize some parameters additionally to enable Hermes debugger?My environment:
Windows 10 Enterprise - 19043.1288
react-native v0.66.0
react-native-windows v0.66.3
Beta Was this translation helpful? Give feedback.
All reactions