On Jul 27, 12:27 pm, James <[email protected]> wrote: > 7. The app immediately starts before I can set any breakpoints. Eg. if > I try to set a breakpoint in the main Activity, jdb says: > > Deferring breakpoint HelloWorldActivity.java:285. > It will be set after the class is loaded. > > I've tried putting my breakpoint commands in .jdbrc, but those are too > late there too; I get the same message.
The VM doesn't really have a choice -- the debuggers I've tried expect that, when they attach to a running VM, the VM will be *running*. (I filed a feature request against Eclipse for this a while back.) However, it sounds like you have the opposite problem, in that the class you're trying to set the breakpoint in doesn't appear to be loaded. The most common way to get this message is to get the class name wrong or omit the package name, e.g. you try to break in class Blah rather than com.foo.Blah. Note in particular the jdb help message: stop at <class id>:<line> -- set a breakpoint at a line That's "class id", not "filename". Looking at http://java.sun.com/javase/6/docs/platform/jpda/jdwp/jdwp-protocol.html#JDWP_EventRequest_Set, the only use of filenames is in SourceNameMatch events, which are only for class prepare events (i.e. stopping when a class is loaded). So I suspect your problem is that you're specifying "HelloWorldActivity.java" as the class name. Replace it with the full class name and try again. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

