用于反应原生的 Chrome 调试工具:多个问题 [英] Chrome debug tools for react native: multiple issues

查看:34
本文介绍了用于反应原生的 Chrome 调试工具:多个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前感谢您的帮助;我宁愿是 RN 和 Android 的新手(我使用 create-native init 创建项目).

问题 1:当我第一次 ctrl+M 并选择远程调试 JS"时,它会尝试 [

解决方案

这个解决方案对我有用:

  1. ctrl+m 在你的模拟器上.
  2. 点击开发设置.
  3. 禁用User JS Delta
  4. 重启本机服务器.(在终端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:

  1. ctrl+m on your emulator.
  2. click on Dev Settings.
  3. Disable User JS Delta
  4. restart the react native server. (ctrl+c in the terminal and then npm run android)

这篇关于用于反应原生的 Chrome 调试工具:多个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆