microsoft / microsoft/vscode-cpptools

[WSL] Unable to launch /usr/bin/gdb when setting bash.exe as the integrated shell in VS Code.

Đang mở
#2,811 12 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pieandcakes đang làm issue này rồi.

Từ ngày 15/11/2018.

debugger
Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Mô tả

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:

  1. Install WSL and Ubuntu 18.04

  2. Install VS Code

  3. Configure VS Code to use the bash shell by adding this to settings:

"terminal.integrated.shell.windows": "C:\WINDOWS\sysnative\bash.exe"

  1. Create directory for cpp project (e.g. /mnt/c/Users/dougdew/Documents/Projects/cpp1)

  2. Create *.cpp file (e.g. main.cpp)

  3. Create tasks.json file with task to build a.out.

  4. Create launch.json file with miDebuggerPath for gdb

  5. Create c_cpp_properties.json file

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.