Looking for the lldb equivalent of the gdb “directory” command to add search paths for finding missing source code (or possibly similar functionality within xcode)?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
target.source-mapsetting allows you define a series ofa => bpath remappings in the debug session. It’s not identical to the gdb dir command, which is a list of directories to search for source files by base name, but you can solve the same problems withsource-map. Here’s an example where I move a source file to a hidden directory after compiling:For more information about this setting, type
set list target.source-mapin lldb. fwiw you might have discovered this in lldb by doingapropos pathwhich will list all commands/settings that have the word path in the name/description. Seeing that there was a setting by this name, you’d dosettings listto see the list of settings and find out that it’s filed undertarget..