WebStorm 调试 create-react-native-app [英] WebStorm debugging create-react-native-app
问题描述
我应该在 WebStorm 的 Run Debug Configuration
中设置什么来调试由
我不知道如何调试,因为它不使用 ~/.node_modules/lib/node_modules/react-native-cli
而是一个名为 react- 的自定义模块native-scripts
开始编译:
package.json:
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",脚本":{"start": "react-native-scripts 开始","eject": "react-native-scripts 弹出","android": "react-native-scripts android","ios": "react-native-scripts ios","test": "节点 node_modules/jest/bin/jest.js --watch",菜单":adb shell 输入 keyevent 82"},
你必须使用 Webstorm/Intellij 2018.1(目前通过 EAP)
https://youtrack.jetbrains.com/issue/WEB-26951https://blog.jetbrains.com/webstorm/2018/02/webstorm-2018-1-eap-181-3263/#debugging-expo
What should I set in Run Debug Configuration
in WebStorm to debug a app created by create-react-native-app?
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"
},
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
这篇关于WebStorm 调试 create-react-native-app的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!