mirror of
https://github.com/status-im/react-native.git
synced 2025-02-06 14:43:49 +00:00
commit
b1d3e442c8
@ -16,6 +16,10 @@ To debug the javascript code of your react app do the following:
|
||||
4. Press ```Command + Option + I``` to open the Chrome Developer tools, or open it via ```View``` -> ```Developer``` -> ```Developer Tools```.
|
||||
5. You should now be able to debug as you normally would.
|
||||
|
||||
> Hint
|
||||
>
|
||||
> To debug on a real device: Open the file ```RCTWebSocketExecutor.m``` and change ```localhost``` to the IP address of your computer. Shake the device to open the development menu with the option to start debugging.
|
||||
|
||||
### Optional
|
||||
Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) extension for Google Chrome. This will allow you to navigate the view hierarchy if you select the ```React``` tab when the developer tools are open.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user