[英]How to attach debugger for Deep Link Android App trigger debug launch?
根据https://developer.android.com/training/app-indexing/deep-linking.html中的帖子,我们可以使用以下命令启动深层链接App Launch
adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.example.android
但是如果我想开始调试,我可以添加一个-D
,如下所示
adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.example.android -D
我的应用程序已经启动,但它已经存在
Waiting For Debugger
Application Android System (process system:ui) is waiting for the debugger to attach
从那里,我检查我的Android Studio,它没有附加。 不知道我怎么能附上它?
您必须在启动后手动附加它,或者已经运行并附加了应用程序,然后启动您的深层链接。 当手机启动应用程序时,手机无法知道它需要连接到连接的PC上的调试器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.