{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/265","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/265/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/265/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/265","id":179827065,"number":265,"title":"Can not attach to remote pid if pid does not exist locally","user":{"login":"andyneff","id":7596961,"avatar_url":"https://avatars.githubusercontent.com/u/7596961?v=3","gravatar_id":"","url":"https://api.github.com/users/andyneff","html_url":"https://github.com/andyneff","followers_url":"https://api.github.com/users/andyneff/followers","following_url":"https://api.github.com/users/andyneff/following{/other_user}","gists_url":"https://api.github.com/users/andyneff/gists{/gist_id}","starred_url":"https://api.github.com/users/andyneff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyneff/subscriptions","organizations_url":"https://api.github.com/users/andyneff/orgs","repos_url":"https://api.github.com/users/andyneff/repos","events_url":"https://api.github.com/users/andyneff/events{/privacy}","received_events_url":"https://api.github.com/users/andyneff/received_events","type":"User","site_admin":false},"labels":[{"id":348032328,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/bug","name":"bug","color":"ee0701","default":true},{"id":355010938,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/debugger","name":"debugger","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"jacdavis","id":13489917,"avatar_url":"https://avatars.githubusercontent.com/u/13489917?v=3","gravatar_id":"","url":"https://api.github.com/users/jacdavis","html_url":"https://github.com/jacdavis","followers_url":"https://api.github.com/users/jacdavis/followers","following_url":"https://api.github.com/users/jacdavis/following{/other_user}","gists_url":"https://api.github.com/users/jacdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/jacdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacdavis/subscriptions","organizations_url":"https://api.github.com/users/jacdavis/orgs","repos_url":"https://api.github.com/users/jacdavis/repos","events_url":"https://api.github.com/users/jacdavis/events{/privacy}","received_events_url":"https://api.github.com/users/jacdavis/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacdavis","id":13489917,"avatar_url":"https://avatars.githubusercontent.com/u/13489917?v=3","gravatar_id":"","url":"https://api.github.com/users/jacdavis","html_url":"https://github.com/jacdavis","followers_url":"https://api.github.com/users/jacdavis/followers","following_url":"https://api.github.com/users/jacdavis/following{/other_user}","gists_url":"https://api.github.com/users/jacdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/jacdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacdavis/subscriptions","organizations_url":"https://api.github.com/users/jacdavis/orgs","repos_url":"https://api.github.com/users/jacdavis/repos","events_url":"https://api.github.com/users/jacdavis/events{/privacy}","received_events_url":"https://api.github.com/users/jacdavis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-09-28T16:50:36Z","updated_at":"2016-11-01T20:58:44Z","closed_at":"2016-09-29T17:59:32Z","body":"I think this is new in Version 0.9.2. \n\nI've been working on understanding #78 and found out that using `processId` in your `launch.json` does not work on remote debugging (using gdbserver) if the pid number you use does not exist on the local machine (even though it does exist on the remote machine). \n\nFor example:\n\n``` json\n{\n    \"name\": \"C++ Attach\",\n    \"type\": \"cppdbg\",\n    \"request\": \"attach\",\n    \"miDebuggerServerAddress\": \"myserver:6666\",\n    \"program\": \"${workspaceRoot}/hello\",\n    \"processId\": \"13467\",\n    \"linux\": {\n        \"MIMode\": \"gdb\"\n    },\n    \"osx\": {\n        \"MIMode\": \"lldb\"\n    },\n    \"windows\": {\n        \"MIMode\": \"gdb\"\n    }\n}\n```\n\nEven though pid 13467 exist on myserver, it doesn't exist on my localhost, and so when I run the attach, I get \n\n```\nError attach: no process with the given id found\n```\n\nHowever if I make sure that pid number exists (via [this](http://stackoverflow.com/a/24224902/4166604) trick), I get a little further, and get a different error (which existed in v0.9.1 too)\n\n```\nUnable to start debugging. Attaching to process 13467 with GDB failed because of insufficient privileges with error message 'ptrace: Operation not permitted.'.\n```\n\nI still have to work around a lot of issues (highlighted in [#78](https://github.com/Microsoft/vscode-cpptools/issues/78#issuecomment-249058654)) to get remote debugging working with cpptools\n\nEnd result, I can't do remote debugging by pid.\n\n(_Spoiler_, my end goal is gdb debugging in a docker. This is why remote debugging is so important to me/not checking that the pid exists locally because I'm using a gdb/gdbserver in a docker)\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/257694830","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/265#issuecomment-257694830","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/265","id":257694830,"user":{"login":"csholmq","id":1297882,"avatar_url":"https://avatars.githubusercontent.com/u/1297882?v=3","gravatar_id":"","url":"https://api.github.com/users/csholmq","html_url":"https://github.com/csholmq","followers_url":"https://api.github.com/users/csholmq/followers","following_url":"https://api.github.com/users/csholmq/following{/other_user}","gists_url":"https://api.github.com/users/csholmq/gists{/gist_id}","starred_url":"https://api.github.com/users/csholmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csholmq/subscriptions","organizations_url":"https://api.github.com/users/csholmq/orgs","repos_url":"https://api.github.com/users/csholmq/repos","events_url":"https://api.github.com/users/csholmq/events{/privacy}","received_events_url":"https://api.github.com/users/csholmq/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T20:58:44Z","updated_at":"2016-11-01T20:58:44Z","body":"@jacdavis Great. How much is the delay? \r\n\r\nI hope to get some tips (and workarounds) in #78 in the meantime."}}
{"actor":{"display_login":"csholmq"}}