On Apr 16, 4:06 am, Jove <[email protected]> wrote:
> I try below command:
> adb forward tcp:8000 jdwp:my pid
> jdb -attach localhost:8000
>
> but get no response. Could anyone give me some hints?

This should work.  Are you using the emulator?  If not, you need to
enable the "is debuggable" flag in the app manifest.  ("adb shell ps -
t" should show that there's a JDWP thread in your process; if it's not
there, debugging is not possible.)

Another way to do this is to run DDMS, either in the Eclipse plugin or
as the stand-alone DDMS tool.  The various processes will be shown
with local port numbers.  Click on the process you want to debug, then
"jdb -attach localhost:8700" on the machine where DDMS is running.
DDMS will forward the debug connection, and can multiplex some of its
own commands.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to