dap-buddy.nvim icon indicating copy to clipboard operation
dap-buddy.nvim copied to clipboard

Question: why does C/C++ debuggers also compiles gdb?

Open NTBBloodbath opened this issue 4 years ago • 0 comments

Hi mate, hope you're doing well!

As the title says I have this question regarding to C/C++ debuggers (in a more specific way with ccppr_vsc one).

I saw those lines in the installation steps for ccppr_vsc and this makes no sense to me due to

  1. I think that the vast majority of C/C++ developers already have gdb installed system-wide.
  2. gdb compilation can be a bit slow and if we already have it system-wide we should be able to skip this step (this could optimize a ton the time to install this debugger).

I know that providing everything ootb is great, but I feel like we don't really need to compile gdb from source if it's already installed system-wide. Maybe we can create a conditional with which gdb and check for the exit code to know if we should compile gdb from source?

NTBBloodbath avatar Sep 27 '21 21:09 NTBBloodbath