Thanks, having DDMS as part of the IDE makes a big difference.



On Mar 9, 4:02 pm, Xavier Ducrohet <[email protected]> wrote:
> It looks like you are using the standalone version of DDMS.
>
> ADT includes DDMS as an eclipse plugin. As soon as you develop for
> Android in Eclipse, the DDMS plugin is started. This means it will
> conflict with the standalone version of DDMS.
>
> In Eclipse, go to the menu Window > Open Perspective > DDMS
> If it's not present, choose Other and then select DDMS in the dialog.
>
> Note that to debug Android application using ADT you do not need to
> use the 8700 port with a manual remote connection.
> In the debug dialog (Run > Open Debug Dialog) you should have an
> "Android Application" launch mode that will do everything for you
> (push the app, launch it, connect a debugger to it)
>
> Xav
>
>
>
>
>
> On Mon, Mar 9, 2009 at 9:59 AM, Mike Collins <[email protected]> wrote:
>
> > I have no idea what the "Device panel in the DDMS pespective" means.
> > Maybe I'm
> > completely missing something.
>
> > In Eclipse I have a "Debug" tab in one of the windows of what I think
> > is called the Debug
> > perspective.  When I run a process via the "Run" command it appears in
> > that window, I
> > can select processses and threads from there.  If I use the "Remote
> > Java Application"
> > command and point it at port 8700 and use DDMS to switch the process I
> > want to port
> > 8700 then it shows up in the Debug tab and can be debugged normally.
>
> > Without using DDMS to switch the process to port 8700 it does not
> > appear in the Eclipse
> > Debug tab.
>
> > Eclipse info
> > Version: 3.4.0
> > Build id: I20080617-2000
>
> >  mike
>
> > On Mar 6, 6:50 pm, Xavier Ducrohet <[email protected]> wrote:
> >> What do you mean Eclipse doesn't see the process of your remote 
> >> application?
> >> It doesn't show up in the Device panel in the DDMS perspective?
>
> >> On Fri, Mar 6, 2009 at 5:48 PM, Mike Collins <[email protected]> 
> >> wrote:
>
> >> > I am running the Eclipse ADT plugin.
>
> >> > Wandering into even blacker magic, two points come up,
>
> >> > If the process I want to debug was started because it's a remote
> >> > service
> >> > of the application I did start via Eclipse how do I attach the Eclipse/
> >> > ADT
> >> > debugger to it?  Eclipse certainly does not see the process.
>
> >> > It does work. I was seeing the "2nd debugger failed" message, that's
> >> > what
> >> > got me to think of shutting down Eclipse and starting DDMS first.
>
> >> > I did -not- update my ADT (because the web page said not to) when I
> >> > rolled to SDK 1.1R1, maybe I should have?
>
> >> > functional but puzzled,
>
> >> >  mike
>
> >> > On Mar 6, 5:23 pm, Xavier Ducrohet <[email protected]> wrote:
> >> >> If you have installed ADT then you should not be running the
> >> >> standalone version of DDMS.
>
> >> >> ADT actually is set of 2 plug-ins: DDMS and ADT.
>
> >> >> When DDMS is running, it constantly monitors emulators that are
> >> >> running, or devices that are connected through USB. As soon as a new
> >> >> device/emulator is connected, it actually connects to each application
> >> >> running on the device/emulator as a debugger. The applications can
> >> >> only accept connection from one debugger, so the 2nd instance of DDMS
> >> >> fails to work (it sees the applications but fails to connect to them)
>
> >> >> (Regular Java debuggers actually connect to DDMS which then forwards
> >> >> the packets to the application back and forth.)
>
> >> >> Xav
>
> >> >> On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins <[email protected]> 
> >> >> wrote:
>
> >> >> > There seems to be some magical connection between Eclipse and DDMS,
> >> >> > after shutting down Eclipse and restarting DDMS and then restarting
> >> >> > Eclispe it now seems to work about like I would have expected.
>
> >> >> > It does not seem like you have to start DDMS before
> >> >> > Eclipse...something
> >> >> > is loose down there...
>
> >> >> >  mike
>
> >> >> > On Mar 6, 11:13 am, Mike Collins <[email protected]> wrote:
> >> >> >> We are using V1.1R1, does the V1.0R2 work better?
>
> >> >> >> That seems to do a bit better, the Eclipse debugger now shows a few
> >> >> >> of the threads in the process.  I still can't seem to set any
> >> >> >> breakpoints
> >> >> >> in the process and DDMS is still showing me nothing interesting.
>
> >> >> >> That's a pain,
> >> >> >>   mike
>
> >> >> >> On Mar 6, 11:00 am, Videoguy <[email protected]> wrote:
>
> >> >> >> > I saw this issue with cupcake release when I was trying to attach 
> >> >> >> > to
> >> >> >> > one of the apps. Some times DDMS worked, sometimes it didn't. I
> >> >> >> > remember I was able to attach when I used the other port for that
> >> >> >> > process (i.e 86XX instead of 8700).
>
> >> >> >> > Why don't you try that?
>
> >> >> >> > Videoguy- Hide quoted text -
>
> >> >> >> - Show quoted text -
>
> >> >> --
> >> >> Xavier Ducrohet
> >> >> Android Engineer, Google.- Hide quoted text -
> >> > - Show quoted text -
>
> >> >> - Show quoted text -
>
> >> --
> >> Xavier Ducrohet
> >> Android Engineer, Google.- Hide quoted text -
>
> >> - Show quoted text -
>
> --
> Xavier Ducrohet
> Android Engineer, Google.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to