209行设置debug,对应的214行去掉debug ActivityManagerShellCommand#runSetDebugApp frameworks/base/services/core/java/com/android/server/am/ActivityManagerShellCommand.java 980intrunSetDebugApp(PrintWriterpw)throwsRemoteException{981booleanwait=false;982booleanpersistent=false;983984Stringopt;985while((opt=getNext...
209case"set-debug-app": 210returnrunSetDebugApp(pw); 213case"clear-debug-app": 214returnrunClearDebugApp(pw); 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 209行设置debug,对应的214行去掉debug ActivityManagerShellCommand#runSetDebugApp frameworks/base/services/core/java/com/android/server/am...
adb shell am set-debug-app -w com.micro.demo 运行上面命令后,app启动,并弹出Waiting For Debugger的弹窗提示, 此时打开AS的Attach debugger to Android process即可,此时我们就可以方便在app启动时的断点调试了。
specify user of process to dump; uses current user if not specified. am set-debug-app: set application to debug. Options are: -w: wait for debugger when application starts –persistent: retain this value am clear-debug-app: clear the previously set-debug-app. am bug-report: request bug ...
set-debug-app [options] :设置package包应用为debug模式。参数选项:-w|--persistent:等待进入调试模式,保留值。 clear-debug-app :清空之前用set-debug-app命令设置的package包应用。 启动:adb shell app am start -n {packageName}/.{activityName} ...
am set-debug-app [-w] [--persistent] <PACKAGE> am clear-debug-app am monitor [--gdb <port>] am hang [--allow-restart] am restart am idle-maintenance am screen-compat [on|off] <PACKAGE> am to-uri [INTENT] am to-intent-uri [INTENT] ...
adb shell amset-debug-app -wcom.some.package 12、clear-debug-app 取消设置debug状态的应用程序 命令样例: adbshellamclear-debug-app 13、monitor [options] 监视Crash 或者ANR错误 options参数如下: --gdb:在给定的端口上启动gdbserv监控crash/ANR错误. ...
be either a process name or pid.Options are:-n:dump native heap insteadofmanaged heap--user<USER_ID>|current:When supplying a process name,specify userofprocess to dump;uses current userifnot specified.am set-debug-app:setapplication<PACKAGE>to debug.Options are:-w:waitfordebuggerwhen applica...
am set-debug-app: set application <PACKAGE> to debug. Options are: -w: wait for debugger when application starts --persistent: retain this value am clear-debug-app: clear the previously set-debug-app. am monitor: start monitoring for crashes or ANRs. ...
am set-debug-app [-w] [--persistent] <PACKAGE> am clear-debug-app am monitor [--gdb <port>] am hang [--allow-restart] am restart am idle-maintenance am screen-compat [on|off] <PACKAGE> am to-uri [INTENT] am to-intent-uri [INTENT] ...