How to Debug Android framework Java code?

1,479 views
Skip to first unread message

shridutt kothari

unread,
Sep 13, 2013, 2:46:55 AM9/13/13
to android-...@googlegroups.com
Hello all,

How can we debug the Android framework Java code? i know how i can debug the c/c++ code with the help of GDB server etc,
But i searched a lot on Google but did not get the solution, currently i am totally relying on Logs but i really need something to Debug the java code inside framework and etc?

please give me some pointers or some details about debugging AOSP framework java code?

Thanks,
Shridutt Kothari
Impetus Infotech

Magnus Bäck

unread,
Sep 13, 2013, 9:49:16 AM9/13/13
to android-...@googlegroups.com
On Friday, September 13, 2013 at 02:46 EDT,
shridutt kothari <shridut...@gmail.com> wrote:

> How can we debug the Android framework Java code? i know how i can
> debug the c/c++ code with the help of GDB server etc,
> But i searched a lot on Google but did not get the solution, currently
> i am totally relying on Logs but i really need something to Debug the
> java code inside framework and etc?
>
> please give me some pointers or some details about debugging AOSP
> framework java code?

Have you looked at http://developer.android.com/tools/debugging/?

--
Magnus Bäck
ba...@google.com

shridutt kothari

unread,
Sep 23, 2013, 6:51:25 AM9/23/13
to android-...@googlegroups.com
Hi Magnus,

Thanks for your reply, I saw the link you mentioned but it seems, it only mentions how to debug android applications, while i am looking for "How to debug AOSP framework java code?"

Kindly provide some pointers and details if possible.

Thanks,
Shridutt kothari

Dianne Hackborn

unread,
Sep 23, 2013, 6:58:20 PM9/23/13
to android-...@googlegroups.com
(1) Use DDMS and select system_process as your current process.
(2) Attach your Java debugger of choice to port 8700.
(3) Debug.


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Joe Droider

unread,
Jun 26, 2014, 5:39:53 PM6/26/14
to android-...@googlegroups.com
Please check Debugging Android Java framework services for detailed how-to.
Reply all
Reply to author
Forward
0 new messages