Skip to content

Instantly share code, notes, and snippets.

@n-peugnet
Last active November 14, 2019 12:05
Show Gist options
  • Save n-peugnet/2dc2ea252fbe9ee2be1b7f36dbba8fa9 to your computer and use it in GitHub Desktop.
Save n-peugnet/2dc2ea252fbe9ee2be1b7f36dbba8fa9 to your computer and use it in GitHub Desktop.
vscode config for qbittorrent development
{
"configurations": [
{
"name": "qbittorrent",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/x86_64-linux-gnu/qt5/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
{
"version": "0.2.0",
"configurations": [
{
"name": "(Chrome) Launch",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium-browser",
"runtimeArgs": [
"--new-window"
],
"preLaunchTask": "run",
"userDataDir": true,
"url": "http://localhost:8080/",
"pathMapping": {
"/": "${workspaceFolder}/src/webui/www/private"
}
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/qbittorrent",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"preLaunchTask": "predebug",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
{
"files.exclude": {
"**/*.o": true,
"**/moc_*.cpp": true,
"**/qrc_*.cpp": true,
"**/ui_*.h": true
}
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"problemMatcher": []
},
{
"label": "kill",
"type": "shell",
"command": "killall qbittorrent",
"problemMatcher": []
},
{
"label": "predebug",
"dependsOn": ["build", "kill"],
},
{
"label": "run",
"type": "process",
"dependsOn": "build",
"command": "${workspaceFolder}/src/qbittorrent",
"isBackground": true,
"problemMatcher": {
"owner": "qbittorrent",
"fileLocation": "relative",
"pattern": {
"regexp": "^err(.*)eur(.*)bi(.*)don(.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
},
"background": {
"activeOnStart": true,
"beginsPattern": "^qt5ct: using qt5ct plugin$",
"endsPattern": "^qt5ct: D-Bus system tray: (yes|no)$"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment