> For the complete documentation index, see [llms.txt](https://easonwang.gitbook.io/web_advance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easonwang.gitbook.io/web_advance/react-native/debug.md).

# Debug

## Debug

點擊Genymotion的Debug JS remote時常會開不了。

所以推薦用此模組：\
<https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md>

```
1.記得先關掉原本的 Debug JS Remotely
2.輸入 open "rndebugger://set-debugger-loc?host=localhost&port=8081"
3.點選 Genymotion 的 Debug JS Remotely
```

**2.簡單看Log**

```
react-native log-android
或是
react-native log-ios
```
