Android通过adb命令Debug调试

时间:2024-11-05 20:33:50

Android Debug后IDE执行的命令:

/ ::: Launching module_app
$ adb push C:\fastwork\Projects\project\CJPT\module_app\build\outputs\apk\debug\module_app-debug.apk /data/local/tmp/lh.com.myapplication
$ adb shell pm install -t -r "/data/local/tmp/lh.com.myapplication"
pkg: /data/local/tmp/lh.com.myapplication
Success $ adb shell am start -n "lh.com.myapplication/com.lh.caijiplatform.view.activity.SpalishActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to lh.com.myapplication
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@711a30c,provider,holder.Provider:android.content.ContentProviderProxy@
W/ActivityThread: Application lh.com.myapplication is waiting for the debugger on port ...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...