jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.36k stars 809 forks source link

Unable to enable network debugging, unable to debug Api #784

Closed lllomh closed 1 year ago

lllomh commented 1 year ago

After running, the network monitor cannot be turned on, and clicking to turn it on is invalid. As shown below:

image

When after sending an axios request, the request record cannot be seen here. Why is this? image

React Native Debugger app version: image React Native version: "react-native": "0.72.3" Platform: [FILL THIS OUT: Android] Is real device of platform: [ No] Operating System: [FILL THIS OUT: Windows 10]

rafauke commented 1 year ago

Have you tried controlling the default behaviour for network inspect through .rndebuggerrc?

{
  // ...
  // Enable Network Inspect by default
  // See https://github.com/jhen0409/react-native-debugger/blob/master/docs/network-inspect-of-chrome-devtools.md
  defaultNetworkInspect: true,
}
lllomh commented 1 year ago

Have you tried controlling the default behaviour for network inspect through .rndebuggerrc?

{
  // ...
  // Enable Network Inspect by default
  // See https://github.com/jhen0409/react-native-debugger/blob/master/docs/network-inspect-of-chrome-devtools.md
  defaultNetworkInspect: true,
}

Hello, I found the reason. Have to turn on debug mode in the emulator to be able to grab the request, thanks! I think this issue can be closed now. Thank you!