Skip to content

Debug linkerd2-proxy #6784

Answered by hawkw
zhxie asked this question in Q&A
Aug 31, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @zhxie,

The proxy project configures Cargo to not generate debug info for dev and test builds. This is because the debug symbols generated for the proxy have been quite large in the past, taking up a lot of disk space. This would explain why you can't see source code in your debugger, and can't set breakpoints on source lines.

You can change this configuration by removing the following lines from the Cargo.toml file in the repo root:

[profile.dev]
debug = false

[profile.test]
debug = false

Then, debug symbols should be generated, and (hopefully) your debugger should work. I haven't used the VS Code CodeLLDB extension, though, so it's possible there are other other issues, but removing…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hawkw
Comment options

Answer selected by zhxie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants