franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

Update launch_template.json to use lldb to instead of cppdbg #141

Closed DocLock17 closed 9 months ago

DocLock17 commented 9 months ago

I needed to add this to get this extension to work for debugging on Linux. Since LLDB is a required dep it made sense to me to file a PR.

franneck94 commented 9 months ago

The change is not correct, the debugger is set in the code and not (only) in the template file

franneck94 commented 9 months ago

LLDB should be selected IF you select any clang compiler

DocLock17 commented 9 months ago

Sorry, I am not a web/framework dev. I work in Python, Java, and C. I would love to help work on this, as I am trying to branch out a bit, but for the moment, it seems I don't understand the issue beyond 'it doesn't work without this change. I can put in an issue if you want, or try to look into the code and figure out why it doesn't work for me otherwise. Not sure what else to do, but I would be very excited to contribute if you could point me in the right direction. Please advise.

NOTE: I am having this issue regardless of whether I am using 'clang' compiler or 'gcc'. Not sure if that was what you meant.

franneck94 commented 9 months ago

There is the C_Cpp_Runner.debggerPath setting where you can just select lldb.

Note there the compiler must be clang

DocLock17 commented 9 months ago

Thank you, I am so sorry I wasted your time. I was trying to fix it but clearly, I don't have the skills. I reattempted with your solution and heavily documented my experience. Since it still has the same problem, I filed an issue. Hope this helps!