有没有办法在 Chromebook 上调试 Xamarin Android 应用程序? [英] Is there way to debug Xamarin Android app on Chromebook?
问题描述
我有一个在 Chromebook 上运行良好的 Android 应用程序.但无法从本地调试.有没有办法在 chromebook 上调试 Xamarin Android 应用程序?谢谢
是,
更新:在某些 Chromebook 上,通过启用 Linux 并使用Develop Android应用程序"Linux 选项.但是,我的 chromebox 似乎不支持此 linux 选项,因此我无法对此进行测试.
将 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.
Put Chromebook in to developer mode. details can be found here
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`
Get ipaddress of chromebook. (eg 192.168.1.100)
On windows box type: adb connect 192.168.1.100:22
type: adb devices
to confirm it worked.
- 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屋!