microsoft / vscode-remote-try-cpp

C++ sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
187 stars 150 forks source link

ms-vscode.cpptools must be manually installed in container before breakpoint can be set #22

Open vharron opened 1 year ago

vharron commented 1 year ago

host: macOS Monterey 12.6 (Intel) docker: 4.15.0 (93002) vscode: Version: 1.54.1 (Universal) Commit: f30a9b73e8ffc278e71575118b6bf568f04587c8

REPRO

vince@aeris tmp % git clone https://github.com/Microsoft/vscode-remote-try-cpp Cloning into 'vscode-remote-try-cpp'... remote: Enumerating objects: 141, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (16/16), done. remote: Total 141 (delta 6), reused 18 (delta 5), pack-reused 120 Receiving objects: 100% (141/141), 57.20 KiB | 1.06 MiB/s, done. Resolving deltas: 100% (61/61), done. vince@aeris tmp %

vscode Open folder: ~/tmp/vscode-remote-try-cpp

try to set breakpoint in main.cpp (doesn't work)

Go to extensions, install cpptools, then I'm able to set a breakpoint.

michaelbprice commented 1 year ago

This repository is meant to be an example of a functional C++ editor environment using Dev Containers. If you use a tool that interacts with the devcontainer.json specification (such as VS Code's Dev Containers extension or the Dev Containers reference CLI implementation), it should work.

The Dev Container file in this repository should install the C++ tools extension for you.