It should be possible to debug a GDNative plugin just like you can debug any dynamic library. I think attach to process should work fine.
Maybe you can make it automatically attach but it depends on the IDE, I’m not sure how CLion works.
Hey thanks for the answer This is what I thought however it does not work. I build my library using debug option and then run godot. I couldn’t attach the debugger to the process it gives me some error, I am not sure what it was as I’m not in front of my pc at the moment. But definitely refuses to do so.
Answering myself also, just add debug information to your build, and for example with QT Creator add your debug points, start the application from Godot and then attach to running process to debug,.