LoginSignup
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

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
What you can do with signing up
1