Skip to content

Commit 3c72887

Browse files
HuxproSimek
andauthored
Update hermes.md to explain debugging on Hermes (#2360)
* Update hermes.md to explain debugging on Hermes This has been a frequently source of confusion. See facebook/hermes#48 (comment) for an example. * fix link format, update base docs * add missing tweak to base docs Co-authored-by: Bartosz Kaszubowski <[email protected]>
1 parent c5f95fa commit 3c72887

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/hermes.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ $ npx react-native run-android --variant release
7070

7171
This will compile JavaScript to bytecode during build time which will improve your app's startup speed on device.
7272

73-
## Debugging Hermes using Google Chrome's DevTools
73+
## Debugging JS on Hermes using Google Chrome's DevTools
7474

75-
Hermes supports the Chrome debugger by implementing the Chrome inspector protocol. This means Chrome's tools can be used to directly debug JavaScript running on Hermes, on an emulator or device.
75+
Hermes supports the Chrome debugger by implementing the Chrome inspector protocol. This means Chrome's tools can be used to directly debug JavaScript running on Hermes, on an emulator or on a real, physical, device.
76+
77+
> Note that this is very different with the "Remote JS Debugging" from the In-App Developer Menu documented in the [Debugging](debugging#debugging-using-a-custom-javascript-debugger) section, which actually runs the JS code on Chrome's V8 on your development machine (laptop or desktop).
7678
7779
Chrome connects to Hermes running on device via Metro, so you'll need to know where Metro is listening. Typically this will be on `localhost:8081`, but this is [configurable](https://facebook.github.io/metro/docs/configuration). When running `yarn start` the address is written to stdout on startup.
7880

website/versioned_docs/version-0.63/hermes.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ $ npx react-native run-android --variant release
7070

7171
This will compile JavaScript to bytecode during build time which will improve your app's startup speed on device.
7272

73-
## Debugging Hermes using Google Chrome's DevTools
73+
## Debugging JS on Hermes using Google Chrome's DevTools
7474

75-
Hermes supports the Chrome debugger by implementing the Chrome inspector protocol. This means Chrome's tools can be used to directly debug JavaScript running on Hermes, on an emulator or device.
75+
Hermes supports the Chrome debugger by implementing the Chrome inspector protocol. This means Chrome's tools can be used to directly debug JavaScript running on Hermes, on an emulator or on a real, physical, device.
76+
77+
> Note that this is very different with the "Remote JS Debugging" from the In-App Developer Menu documented in the [Debugging](debugging#debugging-using-a-custom-javascript-debugger) section, which actually runs the JS code on Chrome's V8 on your development machine (laptop or desktop).
7678
7779
Chrome connects to Hermes running on device via Metro, so you'll need to know where Metro is listening. Typically this will be on `localhost:8081`, but this is [configurable](https://facebook.github.io/metro/docs/configuration). When running `yarn start` the address is written to stdout on startup.
7880

0 commit comments

Comments
 (0)