From 083da950f4841d680d1e8f8a9e2cd39897eefe10 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Wed, 17 Nov 2021 10:55:25 +0000 Subject: [PATCH] vscode: add VSCode IDE integration Part-of: --- .gitignore | 5 +++++ .vscode/launch.json | 52 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index e368b54c0f..ffd5c95f89 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,8 @@ subprojects/*/ !subprojects/win-flex-bison-binaries !subprojects/win-nasm !subprojects/packagefiles + +# VSCode integration +# launch.json will be modified by users depending on the pipeline to test +# We keep these files in the ignore list so they do not appear as modified +.vscode/* diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..51f1064b4f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,52 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + // + "version": "0.2.0", + "configurations": [ + { + "name": "GStreamer - Build and debug", + "request": "launch", + "type": "cppdbg", + "windows": { + "type": "cppvsdbg", + "program": "gst-launch-1.0.exe", + }, + "osx": { + // https://github.com/microsoft/vscode-cpptools/issues/8411 + "MIMode": "lldb", + }, + "linux": { + "MIMode": "gdb" + }, + "envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env", + "cwd": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects/gstreamer/tools/", + "program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects/gstreamer/tools/gst-launch-1.0", + "args": [ + "videotestsrc", + "!", + "autovideosink" + ], + "environment": [ + { + "name": "GST_DEBUG", + "value": "4" + }, + ], + "stopAtEntry": false, + "preLaunchTask": "Meson: Build all targets", + "symbolOptions": { + "searchPaths": [ + "${workspaceFolder}/${config:mesonbuild.buildFolder}", + ], + "searchMicrosoftSymbolServer": true, + "cachePath": "${workspaceFolder}\\${config:mesonbuild.buildFolder}\\cache", + "moduleFilter": { + "mode": "loadAllButExcluded", + "excludedModules": [] + } + } + } + ] +}