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

有帮助吗?

解决方案

I finally found it. For everyone looking where the executable is located go to:

NetBeansProjects->ProjectName->dist->Debug->GNU LINUX(x86)

and there, is located the output when you click debug tool on Netbeans. For convinience right click on it and then make link and drag the link wherever you like/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top