Setup: C++ in VS Code unter Linux (tasks.json und launch.json)C++

Programme in C++. Entwicklerforum
Anonymous
 Setup: C++ in VS Code unter Linux (tasks.json und launch.json)

Post by Anonymous »

Wie konfiguriere ich VS Code launch.json für die C++-Entwicklung unter Linux?
Die offizielle Dokumentation enthält keine offizielle Beispieldokumentation für launch.json für WSL.
Leider kann ich keine erfolgreiche Build- und Debug-Konfiguration von task.json und launch.json für „reines Linux/kein WSL“ erhalten.
Ich suche nach aktuellen Versionen der beiden Dateien. die so generisch wie möglich sind (verwenden Sie wo immer möglich Variablen in den JSON-Dateien).
Mein aktuelles c_cpp_properties.json:

Code: Select all

{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post