buck icon indicating copy to clipboard operation
buck copied to clipboard

Variable resolution when debugging swift code doesn't work

Open ProfessaA opened this issue 7 years ago • 3 comments

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!

ProfessaA avatar Mar 31 '17 21:03 ProfessaA

Same problem in different library 😢

revolter avatar Jan 08 '18 20:01 revolter

Any solution for this issue. @ProfessaA @revolter

icandoitbig avatar Apr 20 '18 09:04 icandoitbig

https://bugs.swift.org/browse/SR-2660 ?

brentleyjones avatar May 11 '18 14:05 brentleyjones