diff --git a/docs/next/debugging.html b/docs/next/debugging.html index 9d781df2a41..696ad6b1308 100644 --- a/docs/next/debugging.html +++ b/docs/next/debugging.html @@ -81,6 +81,18 @@ YellowBox.ignoreWarnings(['Warning: ...']);
+Custom debugger commands executed this way should be short-lived processes, and they shouldn't produce more than 200 kilobytes of output.
You can use Safari to debug the iOS version of your app without having to enable "Debug JS Remotely".
+Preferences → Advanced → Select "Show Develop menu in menu bar"Develop → Simulator → JSContextHowever, there are some disadvantages:
+You can use the standalone version of React Developer Tools to debug the React component hierarchy. To use it, install the react-devtools package globally:
npm install -g react-devtools
diff --git a/docs/next/debugging/index.html b/docs/next/debugging/index.html
index 9d781df2a41..696ad6b1308 100644
--- a/docs/next/debugging/index.html
+++ b/docs/next/debugging/index.html
@@ -81,6 +81,18 @@ YellowBox.ignoreWarnings(['Warning: ...']);
Custom debugger commands executed this way should be short-lived processes, and they shouldn't produce more than 200 kilobytes of output.
+Safari Developer Tools
+You can use Safari to debug the iOS version of your app without having to enable "Debug JS Remotely".
+
+- Enable Develop menu in Safari:
Preferences → Advanced → Select "Show Develop menu in menu bar"
+- Select your app's JSContext:
Develop → Simulator → JSContext
+- Safari's Web Inspector should open which has a Console and a Debugger
+
+However, there are some disadvantages:
+
+- No sourcemaps when debugging
+- Every time the app is reloaded (using live reload, or by manually reloading), a new JSContext is created. Choosing "Automatically Show Web Inspectors for JSContexts" saves you from having to select the latest JSContext manually.
+
React Developer Tools
You can use the standalone version of React Developer Tools to debug the React component hierarchy. To use it, install the react-devtools package globally:
npm install -g react-devtools