Debuggig C++ Plugins

Is there any advice on debugging C++ plugins, doing what I think one should do i.e.

gdb /opt/Coreform/bin/coreform_cubit 

Results in

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/Coreform-Cubit-2021.3/bin/coreform_cubit...

warning: Loadable section ".dynstr" outside of ELF segments
(No debugging symbols found in /opt/Coreform-Cubit-2021.3/bin/coreform_cubit)
(gdb) r
Starting program: /opt/Coreform-Cubit-2021.3/bin/coreform_cubit 
Missing separate debuginfos, use: dnf debuginfo-install Coreform-Cubit-2021.3-2021.3.0-1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
../../gdb/symfile.c:878: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

../../gdb/symfile.c:878: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n

@makeclean The problem internal to GDB errors in release builds of Cubit can be safely ignored. Just keep typing n and you’ll eventually get to the normal gdb prompt.