{"action":"created","issue":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/386","labels_url":"https://api.github.com/repos/tangrams/tangram-es/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/tangrams/tangram-es/issues/386/comments","events_url":"https://api.github.com/repos/tangrams/tangram-es/issues/386/events","html_url":"https://github.com/tangrams/tangram-es/pull/386","id":115520069,"number":386,"title":"Android native debugging","user":{"login":"hjanetzek","id":1747,"avatar_url":"https://avatars.githubusercontent.com/u/1747?v=3","gravatar_id":"","url":"https://api.github.com/users/hjanetzek","html_url":"https://github.com/hjanetzek","followers_url":"https://api.github.com/users/hjanetzek/followers","following_url":"https://api.github.com/users/hjanetzek/following{/other_user}","gists_url":"https://api.github.com/users/hjanetzek/gists{/gist_id}","starred_url":"https://api.github.com/users/hjanetzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjanetzek/subscriptions","organizations_url":"https://api.github.com/users/hjanetzek/orgs","repos_url":"https://api.github.com/users/hjanetzek/repos","events_url":"https://api.github.com/users/hjanetzek/events{/privacy}","received_events_url":"https://api.github.com/users/hjanetzek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tangrams/tangram-es/labels/ready%20for%20review","name":"ready for review","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-06T14:57:10Z","updated_at":"2015-11-25T20:26:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tangrams/tangram-es/pulls/386","html_url":"https://github.com/tangrams/tangram-es/pull/386","diff_url":"https://github.com/tangrams/tangram-es/pull/386.diff","patch_url":"https://github.com/tangrams/tangram-es/pull/386.patch"},"body":"Enable native debugging. It should now be as simple as running:\r\n```\r\n[ANDROID_X86=1] DEBUG=1 make -j android\r\nmake android-install\r\nmake android-debug\r\n```\r\nto run the demo with gdb attached to it. After the first run of android-debug on can quit gdb and then re-attach to the running app with android-debug-attach. With a rooted device or emulator one can also use\r\n\r\n    kill -SIGINT `ps | grep -m 1 tangram | awk -e '{print $2}'`\r\n\r\nin adb shell to suspend the program to set breakpoints, etc.\r\n\r\nTODO\r\n- [X] separate Release/Debug builds\r\n- [X] needs update of our stripped ndk to clang-3.6\r\n- [X] cleanups"},"comment":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/comments/159723454","html_url":"https://github.com/tangrams/tangram-es/pull/386#issuecomment-159723454","issue_url":"https://api.github.com/repos/tangrams/tangram-es/issues/386","id":159723454,"user":{"login":"hjanetzek","id":1747,"avatar_url":"https://avatars.githubusercontent.com/u/1747?v=3","gravatar_id":"","url":"https://api.github.com/users/hjanetzek","html_url":"https://github.com/hjanetzek","followers_url":"https://api.github.com/users/hjanetzek/followers","following_url":"https://api.github.com/users/hjanetzek/following{/other_user}","gists_url":"https://api.github.com/users/hjanetzek/gists{/gist_id}","starred_url":"https://api.github.com/users/hjanetzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjanetzek/subscriptions","organizations_url":"https://api.github.com/users/hjanetzek/orgs","repos_url":"https://api.github.com/users/hjanetzek/repos","events_url":"https://api.github.com/users/hjanetzek/events{/privacy}","received_events_url":"https://api.github.com/users/hjanetzek/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T20:26:46Z","updated_at":"2015-11-25T20:26:46Z","body":"This is the command that fails - what is the output that you get?\r\n\r\n    adb shell run-as com.mapzen.tangram.android /system/bin/sh -c pwd\r\n\r\nIt seems some devices need root for the run-as command. Could you try the modification suggested here?\r\nhttp://stackoverflow.com/questions/6158953/running-ndk-gdb-with-package-not-found-error-on-motorola-phone\r\nSomeone in that thread even suggested that 'run-as' fails when you too many apps installed :D"}}