Closed tristanlabelle closed 3 months ago
I looked into this a bit and I'm not sure what component is doing the process listing and matching.
I think this is a limitation of LLDB. The error message is coming from here https://github.com/apple/llvm-project/blob/00c794fb25f1085c060d5c46e34cbb6145837f1f/lldb/source/Target/Process.cpp#L3023
It looks like the name matching is only happening on the process filename, not full path: https://github.com/apple/llvm-project/blob/3cba3c783ca8712981734ee8ef7f2f56685a7a68/lldb/source/Utility/ProcessInfo.cpp#L301 .
I'll file a bug on lldb, but in the meanwhile the description of "program" is misleading.
Filed on LLDB as https://github.com/llvm/llvm-project/issues/88515 . Should we close this issue?
Nothing we can do about it here
Describe the bug
swift-lldb
attach
debug configurations only match the executable filename despite being documented to match the full path: https://github.com/swift-server/vscode-swift/blob/f3b76be242feda0763170aa14ff555386b607527/package.json#L991To Reproduce Steps to reproduce the behavior:
launch.json
configuration to attach to one of the program by full pathExpected behavior The debugger attaches to the process whose full path matches the one requested.
Environment
swift --version
):