Lazarus. you don't have to create the usual GUI style app, I use if for my SDL/OpenGL projects and it suits my purposes very well. it's great for debugging, it's great for code exploration and it's great for managing the build.