{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/202","repository_url":"https://api.github.com/repos/Microsoft/vscode-cordova","labels_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/202/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/202/events","html_url":"https://github.com/Microsoft/vscode-cordova/issues/202","id":186280683,"number":202,"title":"[cordova-debug-adapter] TypeError: Cannot read property 'protocol' of undefined","user":{"login":"brassier","id":6605674,"avatar_url":"https://avatars.githubusercontent.com/u/6605674?v=3","gravatar_id":"","url":"https://api.github.com/users/brassier","html_url":"https://github.com/brassier","followers_url":"https://api.github.com/users/brassier/followers","following_url":"https://api.github.com/users/brassier/following{/other_user}","gists_url":"https://api.github.com/users/brassier/gists{/gist_id}","starred_url":"https://api.github.com/users/brassier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brassier/subscriptions","organizations_url":"https://api.github.com/users/brassier/orgs","repos_url":"https://api.github.com/users/brassier/repos","events_url":"https://api.github.com/users/brassier/events{/privacy}","received_events_url":"https://api.github.com/users/brassier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-31T13:15:58Z","updated_at":"2016-10-31T19:29:30Z","closed_at":null,"body":"When using Visual Studio Code's \"Cordova Tools\" extension to debug an Ionic 2 application, each debug configuration I try gives the error below:\r\n\r\n    [cordova-debug-adapter] TypeError: Cannot read property 'protocol' of undefined\r\n\r\n[This stack overflow post](http://stackoverflow.com/questions/40312750/visual-studio-code-cordova-debug-adapter-typeerror-cannot-read-property-pr) had the suggestion to create a new issue here.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/comments/257395314","html_url":"https://github.com/Microsoft/vscode-cordova/issues/202#issuecomment-257395314","issue_url":"https://api.github.com/repos/Microsoft/vscode-cordova/issues/202","id":257395314,"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-10-31T19:29:30Z","updated_at":"2016-10-31T19:29:30Z","body":"It sounds like you may need to go mess with sourcemap settings. We need the `foo.js.map` file to have a `sourceRoot` which is either pointing at the root of your sources, or empty. Last time I looked, ionic was producing sourcemaps which referenced an `app` folder which didn't necessarily exist."}}
{"actor":{"display_login":"MSLaguana"}}