有没有办法在 Chromebook 上调试 Xamarin Android 应用程序? [英] Is there way to debug Xamarin Android app on Chromebook?

查看:37
本文介绍了有没有办法在 Chromebook 上调试 Xamarin Android 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 Chromebook 上运行良好的 Android 应用程序.但无法从本地调试.有没有办法在 chromebook 上调试 Xamarin Android 应用程序?谢谢

解决方案

是,

更新:在某些 Chromebook 上,通过启用 Linux 并使用Develop Android应用程序"Linux 选项.但是,我的 chromebox 似乎不支持此 linux 选项,因此我无法对此进行测试.

  1. 将 Chromebook 置于开发者模式.

    现在您可以从 Visual Studio 进行调试,就像在通过 USB 连接的设备或模拟器上一样.

    I have an Android App which works fine on Chromebook. But not able to debug from local. Is there a way to debug Xamarin Android App on chromebook? Thanks

    解决方案

    Yes,

    UPDATE: on some chrome books it might be possible to do this without steps 1 + 2, by instead enabling Linux and using the "Develop Android Apps" Linux options. However my chromebox doesn't appear to support this linux option, and so I'm unable to test this.

    1. Put Chromebook in to developer mode. details can be found here

    2. in shell (Ctrl-Alt-T in chomebook chrome browser, then type shell):

    sudo crossystem dev_boot_signed_only=0

    sudo /usr/libexec/debugd/helpers/dev_features_rootfs_verification

    sudo reboot

    then after reboot:

    `sudo /usr/libexec/debugd/helpers/dev_features_ssh`
    

    1. Get ipaddress of chromebook. (eg 192.168.1.100)

    2. On windows box type: adb connect 192.168.1.100:22

    type: adb devices

    to confirm it worked.

    more info can be found here

    1. The Chromebook should now be shown as a deployment target in visual studio.

    Now you can debug from Visual Studio, like you would on a device connected via usb or on an emulator.

    这篇关于有没有办法在 Chromebook 上调试 Xamarin Android 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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