diff --git a/docs/getting-started.md b/docs/getting-started.md index e92518af..c18c5e69 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -8,7 +8,9 @@ Just these steps will let you start RNDebugger out of box: - RNDebugger will try connect to debugger proxy, use port `8081` by default, you can create a new debugger window (macOS: `Command+T`, Linux/Windows: `Ctrl+T`) to specify the port if you want. - Enable `Debug JS Remotely` of [developer menu](https://reactnative.dev/docs/debugging#accessing-the-in-app-developer-menu) on your app -## Launch by CLI or React Native packager (`macOS` only) +## Launch by CLI or React Native packager + +Platform: macOS / Linux ### The `rndebugger:` URI scheme @@ -18,6 +20,12 @@ Launch RNDebugger by typing the following command: $ open "rndebugger://set-debugger-loc?host=localhost&port=8081" ``` +Or `xdg-open` for Linux: + +```bash +$ xdg-open "rndebugger://set-debugger-loc?host=localhost&port=8081" +``` + The `host` / `port` means React Native packager. You may need to set `port` if you customize the packager port. (`8081` by default) From [`Debugging using a custom JavaScript debugger`](https://reactnative.dev/docs/0.71/debugging#debugging-using-a-custom-javascript-debugger) of React Native docs, you can use `REACT_DEBUGGER` env on react-native packager, it will try to launch RNDebugger when you turn on `Debug JS Remotely`: