LoginSignup
1
1

More than 5 years have passed since last update.

Androidアプリでjdb

Last updated at Posted at 2015-06-25

デバッグしたいアプリを起動する

Bash
adb shell
am start -e debug true jp.co.package/.MainActivity

PID一覧を表示する

Bash
adb jdwp

jdbできるPIDが表示されるのでコピー

Bash
adb forward tcp:7777 jdwp:上記でコピーしたPID
jdb -sourcepath src -attach localhost:7777

JDBコマンド
https://docs.oracle.com/javase/jp/6/technotes/tools/windows/jdb.html

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1