Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm debugging create-react-native-app

What should I set in Run Debug Configuration in WebStorm to debug a app created by create-react-native-app?

enter image description here

I'm at a loss on how to debug since it doesn't use ~/.node_modules/lib/node_modules/react-native-cli but a custom module called react-native-scripts to start the compiling:

package.json:

 "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js --watch",
    "menu": "adb shell input keyevent 82"
  },
like image 272
RedGiant Avatar asked Mar 19 '26 04:03

RedGiant


1 Answers

You have to use Webstorm/Intellij 2018.1 (through EAP at the moment)

https://youtrack.jetbrains.com/issue/WEB-26951 https://blog.jetbrains.com/webstorm/2018/02/webstorm-2018-1-eap-181-3263/#debugging-expo

like image 53
Gazihan Alankus Avatar answered Mar 22 '26 02:03

Gazihan Alankus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!