如何将 firefox 设置为 React-Native 的默认远程 JS 调试器? [英] How can i set firefox to be my default Remote JS Debugger for React-Native?

查看:50
本文介绍了如何将 firefox 设置为 React-Native 的默认远程 JS 调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我没有安装 chrome.当我点击远程调试 JS"时,我收到一条日志,说找不到 chrome",当我尝试访问 firefox 中的 url 时:http://localhost:8081/debugger-ui,不行.

I don't have chrome installed for some reason. When I hit "debug JS remotely", i get a log saying, "chrome wasn't found", and when i try to access the url in firefox : http://localhost:8081/debugger-ui, it doesn't work.

我想在 Firefox 浏览器中调试.如何更改 react-native 远程 JS 调试器的默认设置.

I want to debug in Firefox browser. How can i change the default settings for react-native remote JS debugger.

推荐答案

步骤 1:将 URL 放入 Firefox/Opera 浏览器:http://localhost:8081/debugger-ui

Step1: Put the URL in your Firefox/Opera browser: http://localhost:8081/debugger-ui

第 2 步:打开控制台(Ctrl+Shift+J 或 Cmd+Shift+J)

Step2: Open the Console ( Ctrl+Shift+J or Cmd+Shift+J )

Step3:在模拟器上点击 Cmd+D 并选择Debug JS Remotely"

Step3: Hit Cmd+D on Simulator and select "Debug JS Remotely"

第 4 步:在模拟器上按 Cmd+R

Step4: Hit Cmd+R on Simulator

Step5:在浏览器中检查控制台

Step5: Check the Console in the Browser

这些步骤也适用于 Opera 浏览器

These steps will work for Opera Browser also

这对我有用.

这篇关于如何将 firefox 设置为 React-Native 的默认远程 JS 调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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