on pi I also would go with gdb; If you develop on Mac- use Xcode, Windows - visual studio, Linux vim oder Atom editor with gdb; QT "IDE" would be also a good option
Mostly I develop first on one of the mentioned platform. After I start porting the application over to the target one. It saves time, increases debugging and IDE comfort (depending on OS)
regards
Schreda