Skip to content

Lldb cannot find debug info on MacOS #26247

Closed Answered by kpvo
kpvo asked this question in Q&A
Discussion options

You must be logged in to vote

I've got lldb to function again. The below is probably an overkill so it'd be great if some expert can help pare it down.

---- I added this to my ".bazelrc":

build:debug --spawn_strategy=local
build:debug --sandbox_debug
build:debug --strip=never
build:debug -c dbg
build:debug --features=oso_prefix_is_pwd
build:debug --compilation_mode=dbg
build:debug --copt=-g
build:debug --copt=-O0
build:debug --copt=-fno-omit-frame-pointer
build:debug --fission=no
build --apple_generate_dsym

---- Then, I added this to my ".lldbrc":

settings set target.source-map ./ FullPathNameOfTheHomeDirectoryOfTheModule

---- And, finally added an alias in my ".zshrc" to simplfy invoking bazel :

alias bazeldbg="bazel…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kpvo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant