简体   繁体   English

Netbeans可执行Linux C

[英]Netbeans Executable Linux C

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. 我目前正在Ubuntu(Linux OS)中使用netbeans在C中构建一个程序,我想将它解析为valgrind以解决内存泄漏问题。 So I want to locate the executable that Netbeans create and run it throught terminal with valgrind. 所以我想找到Netbeans创建的可执行文件,并使用valgrind通过终端运行它。 So far I cannot locate where Netbeans saves the executable so I am stuck. 到目前为止,我找不到Netbeans保存可执行文件的位置,所以我被卡住了。 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. 我知道我可以从终端编译程序但是我在不同的文件夹中有很多文件,所以如果我可以从Netbeans中获取可执行文件就会很方便。

Alternatively is any way to connect the Netbeans IDE with valgrind? 或者可以通过任何方式将Netbeans IDE与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. 在那里,当你点击Netbeans上的调试工具时找到输出。 For convinience right click on it and then make link and drag the link wherever you like/ 为了方便,右键单击它,然后链接并拖动链接,无论你喜欢/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM