On Oct 12, 5:28 pm, "[email protected]" <[email protected]> wrote: > I am running Eclipse on Win32 and my Android emulator on Linux. > > Is there a way to use Win32 eclipse to debug code on the emulator that > runs on Linux?
If you run the stand-alone version of DDMS on the Linux box, you can connect the Eclipse debugger to the TCP port for the application you want to debug. The only trick here is that I believe DDMS binds to "localhost" and so won't accept a connection from another machine on that port (this is a common security measure). You can either modify DDMS to bind to INADDR_ANY, which will allow a direct connection from the Windows system, or if you have a full source tree you can use the "jdwpspy" tool to shuffle packets. For example, if you run "jdwpspy 8700 8100" on Linux, you could then tell Eclipse on Windows to connect to port 8100 on the Linux system, and the connection will be forwarded to port 8700 (which should allow you to debug the app currently selected on Linux). As an added bonus, you get to see the decoded JDWP traffic. :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

