Skip to content

Commit

Permalink
Update VS Code config for Windows daemon debugging (#7333)
Browse files Browse the repository at this point in the history
* Update VS Code config for Windows daemon debugging

* Update CL
  • Loading branch information
nbolton committed Jan 23, 2024
1 parent bcf701e commit fb908d6
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 17 deletions.
23 changes: 22 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,32 @@
"version": "0.2.0",
"configurations": [
{
"name": "gui",
"name": "gui lldb",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/bin/synergy",
"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 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"label": "reinstall windows daemon",
"type": "shell",
"command": "python scripts/windows_daemon.py",
"presentation": { "close": true }
"dependsOn": ["build"]
}
]
}
53 changes: 38 additions & 15 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "minimal",
"hidden": true,
"environment": {
"SYNERGY_NO_LEGACY": "ON"
}
},
{
"name": "windows",
"inherits": "base",
Expand Down Expand Up @@ -83,32 +90,48 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
},
{
"name": "windows-debug",
"configurePreset": "windows-debug"
"name": "windows-debug-min",
"inherits": ["windows", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "windows-release",
"configurePreset": "windows-release"
"name": "windows-release-min",
"inherits": ["windows", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "linux-debug",
"configurePreset": "linux-debug"
"name": "linux-debug-min",
"inherits": ["linux", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-release",
"configurePreset": "linux-release"
"name": "linux-release-min",
"inherits": ["linux", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "macos-debug",
"configurePreset": "macos-debug"
"name": "macos-debug-min",
"inherits": ["macos", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos-release",
"configurePreset": "macos-release"
"name": "macos-release-min",
"inherits": ["macos", "minimal"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Tasks:
- #1177 Split CMake presets into debug and release
- #7331 Script to install deps (Windows only for now)
- #7332 Static link OpenSSL libs in CMake preset for Windows
- #7333 Update VS Code config for Windows daemon debugging

# 1.14.6

Expand Down

0 comments on commit fb908d6

Please sign in to comment.