Skip to content

adding basic debug lldb config for vscode codelldb extension #55

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

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

squillace
Copy link
Contributor

This is an initial debug configuration using the CodeLLDB extension in VSCode, but it should work for the builtin rust lldb debugger. I'll add a build task and a GDB configuration as well.

@squillace squillace requested a review from yoshuawuyts as a code owner March 12, 2025 18:37
@squillace
Copy link
Contributor Author

@yoshuawuyts was going to submit the other configs as separate prs, but I could push them into this one if you like it.

@squillace
Copy link
Contributor Author

OK @yoshuawuyts, I've added in GDB configs and make each debugger launch a build task prior to debugging. They both work here; however, I've discovered that GDB in vscode takes an absolute path to the program, which means that the username in linux and/or the Windows pathing can't be "genericized" and needs to be manually changed for the OS/person.

I have a query out to the vscode team to see whether there's a magic string I can invoke to genericized it properly.

Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you so much!

@yoshuawuyts yoshuawuyts merged commit fe47fc9 into bytecodealliance:main Mar 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants