I've just setup VSCode to work from home with my remote SSH that runs Gentoo x64. Everything works fine apart from the GCC debugger which we usually use. It throws me the error in the title.
Here's my launch.json
:
{"version": "0.2.0","configurations": [ {"name": "gcc - Build and debug active file","type": "cppdbg","request": "launch","program": "${fileDirname}/${fileBasenameNoExtension}","args": [],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [ {"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true } ],"preLaunchTask": "gcc build active file","miDebuggerPath": "/usr/bin/gdb" }]}
and my tasks.json
:
{"version": "2.0.0","tasks": [ {"type": "shell","label": "C/C++: gcc build active file","command": "/usr/bin/gcc","args": ["-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}" ],"options": {"cwd": "/usr/bin" },"problemMatcher": ["$gcc" ],"group": "build" }]}
And yes, I do compile with the -g
flag. Any ideas on how to fix this?