benibenj / vscode-pythonCpp

A Visual Studio Code Debug Extension for debugging mixed Python and C++ code. The extension starts a Python debug session and attaches the C++ debugger to it. This extension is useful for debugging Python programs that call functions from shared libraries (.so/.dll).
Other
47 stars 7 forks source link

Support other debuggers than ms-vscode.cpptools #7

Closed jacobolofsson closed 2 years ago

jacobolofsson commented 2 years ago

This plugin looks really cool, but I am using vadimcn.vscode-lldb, not ms-vscode.cpptools. Is there any way to work around it?

Otherwise I think it would be a nice feature to add in the future!

lucidfrontier45 commented 2 years ago

@jacobolofsson

I think it's fairly straitforward.

https://github.com/benibenj/vscode-pythonCpp/blob/master/src/pythonCppDebug.ts#L95

This is how we pass pid to cppconf. We just need to pass pid to not only processId but also pid which lldb ext uses.

benibenj commented 2 years ago

Thanks for the information, I'm having a look at it.

lucidfrontier45 commented 2 years ago

@benibenj I was trying to make a pull request but it looks you have already done this modificatoin. Thanks for quick fix. I'm looking forward to see the new release.

benibenj commented 2 years ago

I have created a new patch. Let me know if the new version works fine for you. Thank you for your help!

lucidfrontier45 commented 2 years ago

@benibenj I confirmed the latest release works fine with VSCode-LLDB. Thanks.