Netbeans IDE easy to set up, but how do I configure it for GDB debug?

Another reference to an old thread about debugging: