debugging lldbclient.py 在多个连接的安卓设备上

qco9c6ql  于 2023-03-03  发布在  其他
关注(0)|答案(1)|浏览(173)

lldbclient.py 似乎无法与连接到同一主机的多个adb设备一起工作。假设我的主机连接了多个android设备。adb设备USB_device_01设备USB_device_02设备10.145.80.01:5555设备10.145.80.02:5555设备lldbclient.py似乎仅在必须断开所有其他设备的连接时才能工作。有没有办法让脚本选择正确的设备?对于网络设备,可以通过adb连接/断开连接来连接或断开连接。但这似乎不适用于USB设备。
我希望lldbclient.py有一个自变量或参数来允许设备选择,但我在文档中没有找到任何类似的示例。

vaqhlq81

vaqhlq811#

考虑到lldbclient.py使用gdbrunner中的ArgumentParser类,则可以使用以下参数:

"-d" to "directs commands to the only connected USB device"

        "-e" to "directs commands to the only connected emulator"

        "-s" to "directs commands to device/emulator with the given serial"

源代码可用here

相关问题