Clickable debug source paths and new launch target (#7335)
* Add rebuild launch target for daemon * Change debug source path to be clickable in VS Code * Shorten launch targets for readability in UI * Update CL
This commit is contained in:
parent
9e2fc6150e
commit
9bb458bff2
3 changed files with 14 additions and 4 deletions
15
.vscode/launch.json
vendored
15
.vscode/launch.json
vendored
|
|
@ -9,19 +9,28 @@
|
|||
"preLaunchTask": "build"
|
||||
},
|
||||
{
|
||||
"name": "windows daemon attach",
|
||||
"name": "win daemon attach",
|
||||
"type": "cppvsdbg",
|
||||
"request": "attach",
|
||||
"processId": "${command:pickProcess}"
|
||||
},
|
||||
{
|
||||
"name": "windows daemon attach lldb",
|
||||
"name": "win daemon attach - lldb",
|
||||
"type": "lldb",
|
||||
"request": "attach",
|
||||
"program": "${workspaceFolder}/build/bin/synergyd"
|
||||
},
|
||||
{
|
||||
"name": "windows daemon launch",
|
||||
"name": "win daemon launch",
|
||||
"type": "cppvsdbg",
|
||||
"cwd": "${workspaceRoot}/build/bin",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/bin/synergyd",
|
||||
"args": ["-f"],
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
},
|
||||
{
|
||||
"name": "win daemon launch - rebuild",
|
||||
"type": "cppvsdbg",
|
||||
"cwd": "${workspaceRoot}/build/bin",
|
||||
"request": "launch",
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ Enhancements:
|
|||
- #7332 Static link OpenSSL libs in CMake preset for Windows
|
||||
- #7333 Update VS Code config for Windows daemon debugging
|
||||
- #7334 Implement hello back in IPC protocol
|
||||
- #7335 Clickable debug source paths and new launch target
|
||||
|
||||
# 1.14.6
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ Log::print(const char* file, int line, const char* fmt, ...)
|
|||
char* message = new char[size];
|
||||
|
||||
#ifndef NDEBUG
|
||||
snprintf(message, size, "[%s] %s: %s\n\t%s,%d", timestamp, g_priority[priority], buffer, file, line);
|
||||
snprintf(message, size, "[%s] %s: %s\n\t%s:%d", timestamp, g_priority[priority], buffer, file, line);
|
||||
#else
|
||||
snprintf(message, size, "[%s] %s: %s", timestamp, g_priority[priority], buffer);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue