-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for running GDB and LLDB #4710
Conversation
62a5d2d
to
28acbea
Compare
After more digging, when building with --fission, it looks like intermediate dwo files aren't provided on rebuilds. That is to say, things like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiice! Some tweaks inline, but LG with those.
docs/project/contribution_tools.md
Outdated
2. Symlink `lldb_launch.json` to `launch.json`: | ||
`ln -s lldb_launch.json .vscode/launch.json` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make it a bit more explicit what this is doing? Thinking about something like this:
2. Symlink `lldb_launch.json` to `launch.json`: | |
`ln -s lldb_launch.json .vscode/launch.json` | |
2. Symlink `lldb_launch.json` to `launch.json` in the workspace directory (typically the checkout of the `carbon-lang` repository): | |
`ln -s lldb_launch.json .vscode/launch.json` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about instead writing "In the .vscode
subdirectory"?
docs/project/contribution_tools.md
Outdated
@@ -247,9 +286,10 @@ comfortable with it. The essential CMake options to pass in order for this to | |||
work reliably include: | |||
|
|||
``` | |||
-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld | |||
-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldbg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldbg | |
-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
After lots of fidgeting, LLDB seems to work. Not sure how reliable this will be though -- fission seems a little hit and miss.