I am currently building a program in C in netbeans at Ubuntu (Linux OS) and I want to parse it to valgrind for memory leaks. So I want to locate the executable that Netbeans create and run it throught terminal with valgrind. So far I cannot locate where Netbeans saves the executable so I am stuck. I know that I can compile the program from terminal but I have a lot of files in different folders so it would be convinient if I could just take the executable from Netbeans.
Alternatively is any way to connect the Netbeans IDE with valgrind?
Thanks in advance