Skip to content

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