Skip to content

Commit

Permalink
Clickable debug source paths and new launch target (#7335)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nbolton committed Jan 24, 2024
1 parent 9e2fc61 commit 9bb458b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lib/base/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bb458b

Please sign in to comment.