{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/204","repository_url":"https://api.github.com/repos/Microsoft/vscode-cordova","labels_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/204/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/204/events","html_url":"https://github.com/Microsoft/vscode-cordova/issues/204","id":186863288,"number":204,"title":"\"Cannot connect to the target: socket hang up\"","user":{"login":"Tsmith18256","id":7586082,"avatar_url":"https://avatars.githubusercontent.com/u/7586082?v=3","gravatar_id":"","url":"https://api.github.com/users/Tsmith18256","html_url":"https://github.com/Tsmith18256","followers_url":"https://api.github.com/users/Tsmith18256/followers","following_url":"https://api.github.com/users/Tsmith18256/following{/other_user}","gists_url":"https://api.github.com/users/Tsmith18256/gists{/gist_id}","starred_url":"https://api.github.com/users/Tsmith18256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tsmith18256/subscriptions","organizations_url":"https://api.github.com/users/Tsmith18256/orgs","repos_url":"https://api.github.com/users/Tsmith18256/repos","events_url":"https://api.github.com/users/Tsmith18256/events{/privacy}","received_events_url":"https://api.github.com/users/Tsmith18256/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-02T17:13:07Z","updated_at":"2016-11-02T17:31:00Z","closed_at":null,"body":"I am trying to debug our app on my Android phone with this extension for the first time, but I am getting \"[cordova-debug-adapter] Error: Cannot connect to the target: socket hang up\" when trying to run the app or manually attach after.\r\n\r\nI have tried running `adb -s FA6910305614 forward tcp:9222 localabstract:webview_devtools_remote_22202`, as suggested in #38, but that didn't work either; opening \"http://localhost:9222/\" in Chrome did nothing but say \"The localhost page isn't working; localhost didn't send any data; ERR_EMPTY_RESPONSE.\"\r\n\r\nI tried the same command to forward just to the normal Chrome Dev Tools (the Chrome app itself) and that worked fine. I also tried using a few different ports with no luck. I have attempted this on a couple devices: a Google Pixel on Android 7 and a Nexus 4 on Android 5.1.\r\n\r\nWe are using Crosswalk for our project, if that makes a difference, but I tried temporarily removing Crosswalk and it still didn't work."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/comments/257938625","html_url":"https://github.com/Microsoft/vscode-cordova/issues/204#issuecomment-257938625","issue_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/204","id":257938625,"user":{"login":"MSLaguana","id":14098340,"avatar_url":"https://avatars.githubusercontent.com/u/14098340?v=3","gravatar_id":"","url":"https://api.github.com/users/MSLaguana","html_url":"https://github.com/MSLaguana","followers_url":"https://api.github.com/users/MSLaguana/followers","following_url":"https://api.github.com/users/MSLaguana/following{/other_user}","gists_url":"https://api.github.com/users/MSLaguana/gists{/gist_id}","starred_url":"https://api.github.com/users/MSLaguana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSLaguana/subscriptions","organizations_url":"https://api.github.com/users/MSLaguana/orgs","repos_url":"https://api.github.com/users/MSLaguana/repos","events_url":"https://api.github.com/users/MSLaguana/events{/privacy}","received_events_url":"https://api.github.com/users/MSLaguana/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T17:31:00Z","updated_at":"2016-11-02T17:31:00Z","body":"If you are using crosswalk then the currently published version of the extension doesn't work for debugging android, but there was a PR a couple of weeks ago to add that support and we should be publishing an update in the near future which will include that. Alternately you can check out this repo and try building it yourself.\r\n\r\nIf it was still failing when you had removed crosswalk, then that must be a separate issue. Are you able to create a fresh `cordova create fooApp` project and attach to that for debugging?"}}
{"actor":{"display_login":"MSLaguana"}}