{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/stetho/issues/80","labels_url":"https://api.github.com/repos/facebook/stetho/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/80/comments","events_url":"https://api.github.com/repos/facebook/stetho/issues/80/events","html_url":"https://github.com/facebook/stetho/issues/80","id":59992294,"number":80,"title":"Can't get it to work on main application","user":{"login":"Tolriq","id":932609,"avatar_url":"https://avatars.githubusercontent.com/u/932609?v=3","gravatar_id":"","url":"https://api.github.com/users/Tolriq","html_url":"https://github.com/Tolriq","followers_url":"https://api.github.com/users/Tolriq/followers","following_url":"https://api.github.com/users/Tolriq/following{/other_user}","gists_url":"https://api.github.com/users/Tolriq/gists{/gist_id}","starred_url":"https://api.github.com/users/Tolriq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tolriq/subscriptions","organizations_url":"https://api.github.com/users/Tolriq/orgs","repos_url":"https://api.github.com/users/Tolriq/repos","events_url":"https://api.github.com/users/Tolriq/events{/privacy}","received_events_url":"https://api.github.com/users/Tolriq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-05T18:17:28Z","updated_at":"2015-03-09T22:12:37Z","closed_at":"2015-03-05T20:02:52Z","body":"Hi,\r\n\r\nThanks for this librarie that opens new perspectives.\r\nI can make the sample application work perfectly but can't make my main application.\r\n\r\nI can inspect the application, but instead of seeing the \r\n```\r\n Welcome to Stetho\r\n          Attached to com.facebook.stetho.sample\r\n```\r\nI see in red \r\n```\r\nNot implemented: Profiler.setSamplingInterval\r\n```\r\nAnd nothing available in the resources tab.\r\n\r\nOn the application logcat I have the exact same things as the sample application :\r\n```\r\nD/ChromeDevtoolsServer﹕ onOpen\r\n```\r\nThen \r\n```\r\nD/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.canEmulate \r\n```\r\nand some others.\r\n\r\nThen finally the \r\n```\r\nD/ChromeDevtoolsServer﹕ onClose: reason=1011 EOF while reading \r\n```\r\n\r\nwhen I close the inspect window.\r\n\r\nNo error or nothing so hard to understand the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/stetho/issues/comments/77955530","html_url":"https://github.com/facebook/stetho/issues/80#issuecomment-77955530","issue_url":"https://api.github.com/repos/facebook/stetho/issues/80","id":77955530,"user":{"login":"jasta","id":83791,"avatar_url":"https://avatars.githubusercontent.com/u/83791?v=3","gravatar_id":"","url":"https://api.github.com/users/jasta","html_url":"https://github.com/jasta","followers_url":"https://api.github.com/users/jasta/followers","following_url":"https://api.github.com/users/jasta/following{/other_user}","gists_url":"https://api.github.com/users/jasta/gists{/gist_id}","starred_url":"https://api.github.com/users/jasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasta/subscriptions","organizations_url":"https://api.github.com/users/jasta/orgs","repos_url":"https://api.github.com/users/jasta/repos","events_url":"https://api.github.com/users/jasta/events{/privacy}","received_events_url":"https://api.github.com/users/jasta/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T22:12:37Z","updated_at":"2015-03-09T22:12:37Z","body":"Hehe, I think I have a clue here.  Are you buy chance using proguard on your debug builds and/or using Stetho on a release build?  I'm almost positive that proguard is obfuscating the class and/or method names of the `ChromeDevtoolsDomain` methods which will break the protocol implementation.\r\n\r\nI recommend disabling proguard for debug builds if you can.  Otherwise, try adding the following proguard rules:\r\n```\r\n-keepnames class com.facebook.stetho.**\r\n```\r\nYou can verify this worked using:\r\n```\r\ndexdump MyApp.apk | grep 'Class desc' | grep stetho\r\n```\r\nAnd look for names like `Network`, `Runtime`, `DOMStorage`, etc."}}