[lldb] It doesn't seem possible to achieve deterministic debuggable builds when using ClangImporter
#62793
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
clang importer
Area → compiler: The clang importer
lldb
Description
The binary output of swift compilation (
arm64-apple-ios-simulator.swiftinterface
files) contain the information about include paths, in the format of absolute paths.There is no way to remap these paths to different location for lldb when using
ClangImporter
(by compiling with the linker option-add_ast_paths /Path/To/MyModule/arm64-apple-ios-simulator.swiftinterface
).Steps to reproduce
/Path/To/Location1
,/Path/To/Location2
)./Path/To/Location1
.~/.lldbinit
file with these contents:/Path/To/Location2
.$BUILT_PRODUCTS_DIR
folder of project on/Path/To/Location1
into the$BUILT_PRODUCTS_DIR
folder of project on/Path/To/Location2
./Path/To/Location1
, keep working now with the project on/Path/To/Location2
./Path/To/Location1
or move/rename to some other location.LibWithObjcSwiftObject.swift:9
App
scheme to~/.lldbinit
in the scheme settings.Product -> Perform Action -> Run Without Building
po self
in the debugger console.Expected behavior
po self
command succeeds, thedebugDescription
of the object gets printed.Actual behavior
The error gets printed
Environment
The text was updated successfully, but these errors were encountered: