Update VS Code config for Windows daemon debugging (#7333)
* Update VS Code config for Windows daemon debugging * Update CL
This commit is contained in:
parent
bcf701ebae
commit
fb908d6e17
4 changed files with 63 additions and 18 deletions
23
.vscode/launch.json
vendored
23
.vscode/launch.json
vendored
|
|
@ -2,11 +2,32 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "gui",
|
"name": "gui lldb",
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/build/bin/synergy",
|
"program": "${workspaceFolder}/build/bin/synergy",
|
||||||
"preLaunchTask": "build"
|
"preLaunchTask": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows daemon attach",
|
||||||
|
"type": "cppvsdbg",
|
||||||
|
"request": "attach",
|
||||||
|
"processId": "${command:pickProcess}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows daemon attach lldb",
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "attach",
|
||||||
|
"program": "${workspaceFolder}/build/bin/synergyd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows daemon launch",
|
||||||
|
"type": "cppvsdbg",
|
||||||
|
"cwd": "${workspaceRoot}/build/bin",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/build/bin/synergyd",
|
||||||
|
"args": ["-f"],
|
||||||
|
"preLaunchTask": "build"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
|
@ -13,7 +13,7 @@
|
||||||
"label": "reinstall windows daemon",
|
"label": "reinstall windows daemon",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "python scripts/windows_daemon.py",
|
"command": "python scripts/windows_daemon.py",
|
||||||
"presentation": { "close": true }
|
"dependsOn": ["build"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "minimal",
|
||||||
|
"hidden": true,
|
||||||
|
"environment": {
|
||||||
|
"SYNERGY_NO_LEGACY": "ON"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "windows",
|
"name": "windows",
|
||||||
"inherits": "base",
|
"inherits": "base",
|
||||||
|
|
@ -83,32 +90,48 @@
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Release"
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
],
|
|
||||||
"buildPresets": [
|
|
||||||
{
|
|
||||||
"name": "windows-debug",
|
|
||||||
"configurePreset": "windows-debug"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-release",
|
"name": "windows-debug-min",
|
||||||
"configurePreset": "windows-release"
|
"inherits": ["windows", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-debug",
|
"name": "windows-release-min",
|
||||||
"configurePreset": "linux-debug"
|
"inherits": ["windows", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-release",
|
"name": "linux-debug-min",
|
||||||
"configurePreset": "linux-release"
|
"inherits": ["linux", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "macos-debug",
|
"name": "linux-release-min",
|
||||||
"configurePreset": "macos-debug"
|
"inherits": ["linux", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "macos-release",
|
"name": "macos-debug-min",
|
||||||
"configurePreset": "macos-release"
|
"inherits": ["macos", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-release-min",
|
||||||
|
"inherits": ["macos", "minimal"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ Tasks:
|
||||||
- #1177 Split CMake presets into debug and release
|
- #1177 Split CMake presets into debug and release
|
||||||
- #7331 Script to install deps (Windows only for now)
|
- #7331 Script to install deps (Windows only for now)
|
||||||
- #7332 Static link OpenSSL libs in CMake preset for Windows
|
- #7332 Static link OpenSSL libs in CMake preset for Windows
|
||||||
|
- #7333 Update VS Code config for Windows daemon debugging
|
||||||
|
|
||||||
# 1.14.6
|
# 1.14.6
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue