用于反应原生的 Chrome 调试工具:多个问题 [英] Chrome debug tools for react native: multiple issues
问题描述
提前感谢您的帮助;我宁愿是 RN 和 Android 的新手(我使用 create-native init 创建项目).
问题 1:当我第一次 ctrl+M 并选择远程调试 JS"时,它会尝试 [
这个解决方案对我有用:
ctrl+m
在你的模拟器上.- 点击
开发设置
. - 禁用
User JS Delta
- 重启本机服务器.(在终端ctrl+c然后
npm run android
)
thanks in advance your your help; I rather a newbie with RN and Android (i used create-native init to create project).
Issue 1: when i first ctrl+M and choose "Debug JS Remotely" it attempts [http://10.0.2.2:8081/debugger-ui] but hangs indefinitely.
Issue 2. and when I finally give up and instead manually visit [http://localhost:8081/debugger-ui/], I have no way to revert AVD from "white screen of death"..ive tried "Stop Remote JS Bebugging", "Reload" etc....but end of having to use "react-native run-android" to refresh
Issue 3: Once I finally have [http://localhost:8081/debugger-ui/] displaying the desired "Debugger session #0 active" and I go into dev tools --> Sources --> Network --> debuggerWorker.js.....I don't see my folders/files listed. See screenshot.
RN is hard enough without being able to debug!
This solution worked for me:
ctrl+m
on your emulator.- click on
Dev Settings
. - Disable
User JS Delta
- restart the react native server. (ctrl+c in the terminal and then
npm run android
)
这篇关于用于反应原生的 Chrome 调试工具:多个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!