如何在Linux上手动启动React Native Debugger-Ubuntu

时间:2019-06-05 09:06:42

标签: react-native ubuntu installation react-native-debugger

我想在react本机开发环境上启用react -native-debugger。所以我跟随 https://github.com/jhen0409/react-native-debugger

并下载了rn-debugger-linux-x64.zip

然后解压缩文件。

我想知道的是那之后,我如何手动启动react-native-debugger?

4 个答案:

答案 0 :(得分:0)

查看其仓库的“入门”部分; https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md

答案 1 :(得分:0)

解压缩所有文件时,将在其中找到可执行文件。在Ubuntu中,您可以使用以下命令在终端中的终端中运行它:

./react-native-debugger

希望这会有所帮助

答案 2 :(得分:0)

您只需要 -下载.deb文件

https://github.com/jhen0409/react-native-debugger/releases

  • 两次按 react-native-debugger_0.10.5_amd64.deb

  • 安装该应用程序,并将其像计算机中的所有其他应用程序一样使用

答案 3 :(得分:0)

https://github.com/jhen0409/react-native-debugger/issues/116#issuecomment-475866514

要在Ubuntu上安装,您将需要:

  1. 下载最新的rn-debugger-linux-x64.zip
  2. 将其解压缩并将文件夹移至/ opt

    cd〜/下载 sudo解压缩rn-debugger-linux-x64.zip -d / opt / ReactNativeDebugger

  3. 最好重命名可执行文件

    cd / opt / ReactNativeDebugger sudo mv'React Native Debugger'rndebugger

  4. 将包含React Native Debugger重命名的可执行文件的文件夹添加到您的路径

    vim〜/ .bash_profile 导出PATH =“ $ PATH:/ opt / ReactNativeDebugger”

  5. 从资源库下载图标并将其放置在/ opt / ReactNativeDebugger文件夹中

    sudo mv〜/ Downloads / logo.png /opt/ReactNativeDebugger/logo.png

  6. 创建一个桌面条目,以便您可以将本机调试器固定到扩展坞上

    vim〜/ .local / share / applications / rndebugger.desktop

包括并编辑条目并保存文件。 重要的是,用可执行文件和徽标文件的绝对路径替换Exec和Icon

[Desktop Entry]
Version=0.9.7
Type=Application
Name=ReactNativeDebugger
Exec=/opt/ReactNativeDebugger/rndebugger
Icon=/opt/ReactNativeDebugger/logo.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=rndebugger
相关问题