microsoft / microsoft/vscode-cpptools
[WSL] Unable to launch /usr/bin/gdb when setting bash.exe as the integrated shell in VS Code.
@pieandcakes 已经在做这个了。
开始于 2018年11月15日。
- 主要语言
- TypeScript
- 星标
- 6.2k
- 派生
- 1.7k
- 平均合并
- 14 小时 46 分钟
- 30 天内合并 PR
- 61
描述
I'm unable to launch WSL's installation of gdb when using Visual Studio Code on Windows.
I received an "invalid path" error when I specified this in my launch.json file:
"miDebuggerPath" : "/usr/bin/gdb"
I received an "invalid binary" error when I instead specified this in my launch.json file:
"miDebuggerPath": "/Users/dougdew/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/usr/bin/gdb",
I'm running Windows 10 v1803, WSL, Ubuntu 18.04, VS Code v1.29 and C/C++ Extension v0.20.1
I have no other extensions installed.
To reproduce the bug:
-
Install WSL and Ubuntu 18.04
-
Install VS Code
-
Configure VS Code to use the bash shell by adding this to settings:
"terminal.integrated.shell.windows": "C:\WINDOWS\sysnative\bash.exe"
-
Create directory for cpp project (e.g. /mnt/c/Users/dougdew/Documents/Projects/cpp1)
-
Create *.cpp file (e.g. main.cpp)
-
Create tasks.json file with task to build a.out.
-
Create launch.json file with miDebuggerPath for gdb
-
Create c_cpp_properties.json file
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。