【发布时间】:2021-04-14 02:01:47
【问题描述】:
我正在尝试在作为 React Native 前端应用程序的 Node 项目中设置调试断点。
我正在使用 WebStorm v2020.3 和 Node v15.14.0
我在整个项目中设置了断点,但没有一个被触发。
我的调试设置“附加到 Node.js/Chrome”运行配置:
首先,我运行项目并得到这个输出:
/usr/local/bin/node --inspect-brk /Users/lachlangrant/Git/RN-BILLI-APP/node_modules/react-native/cli.js start
Debugger listening on ws://127.0.0.1:9229/051a5d86-ad54-4a6c-bbaa-366bbe8a938e
For help, see: https://nodejs.org/en/docs/inspector
接下来,我运行调试器并获得以下输出:
Debugger attached.
###### ######
### #### #### ###
## ### ### ##
## #### ##
## #### ##
## ## ## ##
## ### ### ##
## ######################## ##
###### ### ### ######
### ## ## ## ## ###
### ## ### #### ### ## ###
## #### ######## #### ##
## ### ########## ### ##
## #### ######## #### ##
### ## ### #### ### ## ###
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
(node:33264) Warning: Accessing non-existent property 'splice' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Welcome to React Native!
Learn once, write anywhere
To reload the app press "r"
To open developer menu press "d"
然后我在 Xcode 中使用模拟器触发断点,没有任何反应。
我查看了各种主题,包括this one。
有什么想法吗?提前致谢。
【问题讨论】:
标签: node.js react-native webstorm jetbrains-ide