buck
buck copied to clipboard
Variable resolution when debugging swift code doesn't work
I have an apple_library
and apple_test
both containing only swift code. I'm building the xctest
bundle for the test target via buck but running the test bundle through xcode. Breakpoints set through the UI are triggered properly but any kind of variable inspection doesn't work.
When trying to inspect variables in lldb, I get the message "warning: Swift error in module MySwiftTests. Debug info from this module will be unavailable in the debugger". Running fr v -L self
returns self = <could not resolve type>
.
Is there some way to get variable resolution for swift sources to work while debugging? I'm currently specifying the -g
and -Onone
swift compiler flags, is there anything else I have to do?
Also, is there a way to make it so that the generated debug symbols use sanitized paths so that the generated artifacts can be re-used on different machines?
Thanks!
Same problem in different library 😢
Any solution for this issue. @ProfessaA @revolter
https://bugs.swift.org/browse/SR-2660 ?