{"id":131,"date":"2014-09-29T13:57:05","date_gmt":"2014-09-29T12:57:05","guid":{"rendered":"http:\/\/www.sarbyn.com\/tech\/?p=131"},"modified":"2014-09-29T13:57:28","modified_gmt":"2014-09-29T12:57:28","slug":"howto-debug-an-aosp-cm-java-application","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2014\/09\/29\/howto-debug-an-aosp-cm-java-application\/","title":{"rendered":"HOWTO &#8211; Debug an AOSP &#8211; CM java application"},"content":{"rendered":"<p>Just a little reminder for the future<\/p>\n<p>Run DDMS and select the process that you want to debug (for example, com.android.calendar).<\/p>\n<p>Now, in eclipse, you can attach to the emulator or device:<\/p>\n<ol>\n<li>Run &gt; Open Debug Dialog&#8230;<\/li>\n<li>Right-click &#8220;Remote Java Application&#8221;, select &#8220;New&#8221;.<\/li>\n<li>Pick a name, i.e. &#8220;android-debug&#8221; or anything you like.<\/li>\n<li>Set the &#8220;Project&#8221; to your project name.<\/li>\n<li>Keep the Host set to &#8220;localhost&#8221;, but change Port to 8700.<\/li>\n<li>Click the &#8220;Debug&#8221; button and you should be all set.<\/li>\n<\/ol>\n<p>Note that port <strong>8700 is attached to whatever process is currently selected<\/strong> in the DDMS console, so you need to sure that DDMS has selected the process you want to debug<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a little reminder for the future Run DDMS and select the process that you want to debug (for example, com.android.calendar). Now, in eclipse, you can attach to the emulator or device: Run &gt; Open Debug Dialog&#8230; Right-click &#8220;Remote Java Application&#8221;, select &#8220;New&#8221;. Pick a name, i.e. &#8220;android-debug&#8221; or anything you like. Set the &#8220;Project&#8221; <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2014\/09\/29\/howto-debug-an-aosp-cm-java-application\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[5],"tags":[75,30,22],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-android","tag-android","tag-aosp","tag-cyanogenmod"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-27","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/131"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":3,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}