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

Debugger Path Setting Broken For VS Codium #143

Closed DocLock17 closed 9 months ago

DocLock17 commented 9 months ago

Using VSCodium on Linux Mint Debugger Appears to be Path Setting Broken

Understanding clang must be set as selected compiler clangset

Found C_Cpp_Runner.debuggerPath Here: settingFound

Set it to LLDB as directed: corrected

Get this error when attempting to run: error

I checked the settings.json file but didn't see any update to the file. So I manually updated too: manualset

Repeating my test I get the same error error

Looking at launch.json I see: launchremains

By changing line 6 to 'lldb' this regains functionality: works

However, this file is generated and gets overwritten so I seem to have to set this in the extension template itself. I made a YouTube video to show people how to do this until a better solution becomes available. NOTE: the error and apparent solution appear the same using 'gcc' as well.

franneck94 commented 9 months ago

In the first pictures you changed the systems setting and not the local workspace settings. As said in the README only changing the local (workspace) settings.json is the right way. (Btw this is true for every vscode extension, that the local settings override the global settings)

DocLock17 commented 9 months ago

I included a picture of me manually setting the local workspace settings.json and it still isn't working though?

Is this not the workspace settings.json? : image

franneck94 commented 9 months ago

One question, are you using VScodium and not VSCode?

DocLock17 commented 9 months ago

To be clear, is your extension not meant to be compatible with VS-Codium?

Perhaps I am just confused as to your target?

franneck94 commented 9 months ago

It's only partially compatible, since all of the Microsoft stuff is not available there. And tbh I won't spent much time for vscodium

DocLock17 commented 9 months ago

Completely understood. It was originally my hope to submit a simple solution and make your life easier. Now that I know it is not that simple, I will simply continue to use my workaround.

I did prepare these two YouTube videos on setup with workarounds for Codium+Linux users.

This one is for GCC users

https://www.youtube.com/watch?v=RkbZG6g83dE

This one is for CLANG users

https://www.youtube.com/watch?v=Q8WZJ1qu6mg

You are certainly welcome to use these links or not as you see fit. I would love for them to be of use to you, but I expect nothing in particular. I really appreciate your extension, and I am grateful for your help and contribution! Thank you!

DocLock17 commented 9 months ago

Hope this helps