Closed fgropengieser closed 3 years ago
@chrmarti are you aware of any issues that may cause this in Remote-Containers? Or is it a C++ extension issue?
I should mentioned that I already opened a ticket couple of month ago for the cpp extension: https://github.com/microsoft/vscode-cpptools/issues/6541 ... However it was closed with reason that it might be a container extension issue.
It works without the mount and it doesn't when the mount is there. So it seems to be an interaction between the C++ extension and that mount point. It also works when using a volume mount, you could use that as a workaround: "mounts": ["source=vscode-server-volume,target=/home/root/.vscode-server,type=volume"]
/cc @WardenGnaw
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Environment
Bug description When the C++ Extension is installed on a bind-mounted folder and I run the debug launch configuration, the debug toolbar (with pause, step and so on) shows up but then immediately debugging exits without ANY feedback and ANY logs. If I install the C++ Extension inside the container, everything works as expected.
Steps to reproduce
Create a dev container with the C++ docker file provided by Microsoft Remote-Containers extension using Ubuntu 18.04. Below is my devcontainer.json file:
int main() { std::cout << "Hello World!"; return 0; }
{ "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/hello", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "console": "externalTerminal", "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }