Eclipse,CDT,(N)Curses和debugin / profiling [英] Eclipse, CDT, (N)Curses and debugin/profiling

查看:224
本文介绍了Eclipse,CDT,(N)Curses和debugin / profiling的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

是否可以调试/配置基于Eclipse \CDT编写的基于ncurses的应用程序?通过使用eclipse IDE当然。

Is it possible to debug/profile a ncurses based application written in Eclipse\CDT? By using eclipse IDE of course.

主要的问题是,eclipse运行这个应用程序应该使用外部控制台,但不会这样做。
甚至将输出重定向到一个文件(终端)没有改变任何东西...

Main problem is that eclipse to run this application should use a external console but it wont do that. Even redirecting output into a file (terminal) didnt change anything...

现在我使用valgrind来查找泄漏和其他东西,它很难读取输出文件一个编辑器。 Eclipse有一个用于valgrind的插件,但它不能导入resoult数据进行分析。

For now Im using valgrind to looking for leaks and other things and its hard to read output file wich a single editor. Eclipse had a plugin for valgrind but it can not import resoult data for analise.

这是我的配置:


  • 系统Linux(基于Debian)

  • Eclipse IDE

  • Valgrind作为剖析器

推荐答案

是的,只要可执行文件使用调试符号编译,您可以简单地在外部shell中启动它然后在进程启动后附加调试器:

Yes, as long as the executable was compiled with debug symbols you can simply launch it in an external shell then attach the debugger after the process is up:

http://wiki.eclipse.org/CDT/User/FAQ#Can_I_debug_a_process_that_I_didn.27t_develop_in_Eclipse.3F

在通过该FAQ项目截图,您将对C / C ++附加到应用程序启动配置感兴趣。

On the screenshot by that FAQ item, you'll be interested in the "C/C++ Attach to Application" Launch Configuration.

这篇关于Eclipse,CDT,(N)Curses和debugin / profiling的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆