{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1660","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1660/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1660/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1660/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1660","id":303912695,"number":1660,"title":"${workspaceFolder} does not convert correct path to gdb in WSL","user":{"login":"weinand","id":1898161,"avatar_url":"https://avatars0.githubusercontent.com/u/1898161?v=4","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T17:08:35Z","updated_at":"2018-03-09T17:08:35Z","closed_at":null,"author_association":"MEMBER","body":"_From @ajssousa on March 9, 2018 16:10_\n\n- VSCode Version: 1.21.0\r\n- OS Version: Windows 10 1709\r\n\r\nHi.\r\n\r\nI have the WSL using Ubuntu and want to use gdb installed on WSL through the VSC.\r\nEvertything works fine if i use the full path like in WSL (e.g. /mnt/c/Users/..)\r\n\r\nThe problem is if i want to use relative paths, the VSC is not converting an passing right to gdb inside WSL.\r\n\r\nSteps to Reproduce:\r\n1. \r\nMy setup:\r\n\r\n            \"name\": \"gdb using WSL bash\",\r\n            \"type\": \"cppdbg\",\r\n            \"request\": \"launch\",\r\n            \"program\": \"${workspaceFolder}/s3/S3IDMain\",\r\n            \"args\": [\"\"],\r\n            \"stopAtEntry\": false,\r\n            \"cwd\": \"${workspaceFolder}/s3/\",\r\n            \"environment\": [],\r\n            \"externalConsole\": true,\r\n            \"pipeTransport\": {\r\n                \"debuggerPath\": \"/usr/bin/gdb\",\r\n                \"pipeProgram\": \"C:\\\\Windows\\\\sysnative\\\\bash.exe\",\r\n                \"pipeArgs\": [\"-c\"],\r\n                \"pipeCwd\": \"\"\r\n            },\r\n            \"sourceFileMap\": {\r\n                \"/mnt/e\": \"e:\\\\\"\r\n            },\r\n            \"setupCommands\": [\r\n                {\r\n                    \"description\": \"Enable pretty-printing for gdb\",\r\n                    \"text\": \"-enable-pretty-printing\",\r\n                    \"ignoreFailures\": true\r\n                }\r\n            ]\r\n        },\r\n\r\n![image](https://user-images.githubusercontent.com/37220160/37216821-b2f7e7fc-23b3-11e8-8689-61180fcaac78.png)\r\n\r\nIt says Unexpected GDB output from command \"-environment-cd\"\r\n\r\nUsing the ${workspaceFolder} or even using the Linux relative paths (../) he is not converting correctly to send to gdb. If the put the full path as a Linux style, no problem (e.g. of full path that works: /mnt/e/edws/svn-edws/s3/S3Trunk/S3/S3Mains ).\r\n\n\n_Copied from original issue: Microsoft/vscode#45418_"}}
{"actor":{"display_login":"weinand"}}