I prefer to not use Eclipse, but I do like its ability to set
breakpoints, query values, and step through programs. I believe that
this is possible using a combination of ddms and jdb, but I have not
been able to set a breakpoint.
Here's what I do:
1. I start the emulator:
emulator -avd my.avd &
2. I install my app:
adb -e install -r bin/HelloWorldActivity-debug.apk
3. In the emulator, I go to Dev Tools/Development Settings and set
"Wait for Debugger". I choose the app in that must wait.
4. I start up ddms:
ddms &
5. I start the app on the emulator. It obediently says it's waiting
for the debugger to attach.
6. ddms shows the app with port 8700 active. So I start up jdb using
port 8700.
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.
I suspect that Eclipse must use the same set of tools, but in the
right sequence, so it must be possible. But what is that right
sequence?
Thanks !
Jim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---