Ok, so I've been trying to debug Android apps from jdb.
I run the emulator, install the app, run ddms and then I launch the app and then select it in DDMS. Now I run jdb with the following command
jdb -attach localhost:8700 -sourcepath /project-root/src
jdb is able to attach to the process, and then a command such as
stop in com.android.helloworld.onClick
works well.
However, when I use C-x space in Emacs, it runs a command with the line number,
stop at com.android.helloworld:22
and I get this output
Unable to set breakpoint com.android.helloworld:22 : No code at line 22 in com.android.helloworld
I have checked that the line number is correct, and tried to pass the filename itself, to no avail. Any ideas?