[Lldb-commits] [lldb] [vscode-lldb] Improve logging in Server Mode (PR #159672)

Roy Shi via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 19 13:41:51 PDT 2025


royitaqi wrote:

@JDevlieghere VSCode PID isn't readily accessible (see [ref](https://www.google.com/search?q=how+does+a+vscode+extension+get+the+PID+of+the+vscode+window%3F) and [ref](https://stackoverflow.com/questions/43975632/access-window-object-from-vscode-extension)), so I used the VSCode session ID instead, which is also anonymous and unique.

However, it does make the filename very long. Hope that's okay.
> lldb-dap-session-20250919T133507-vscode-54067173-4e17-4947-91b7-6316a298ab321758314104490.log

If it's going to be any better, I can just keep the first segment of the UUID, so that it will look like:
> lldb-dap-session-20250919T133507-vscode-54067173.log

Will wait for your opinion before merging. Kindly LMK.

https://github.com/llvm/llvm-project/pull/159672


More information about the lldb-commits mailing list