Eclipse、CDT、(N)Curses 和调试/分析
嗨!
是否可以调试/分析用 Eclipse\CDT 编写的基于 ncurses 的应用程序?当然是使用 eclipse IDE。
主要问题是 eclipse 运行这个应用程序应该使用外部控制台,但它不会这样做。 即使将输出重定向到文件(终端)也没有改变任何东西......
现在我使用 valgrind 来寻找泄漏和其他东西,并且很难用单个编辑器读取输出文件。 Eclipse 有一个 valgrind 插件,但它无法导入结果数据进行分析。
这是我的配置:
- 系统 Linux(基于 Debian)
- Eclipse IDE
- Valgrind 作为分析器
Hi!
Is it possible to debug/profile a ncurses based application written in Eclipse\CDT? By using eclipse IDE of course.
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...
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.
Here is my configuration:
- System Linux(Debian based)
- Eclipse IDE
- Valgrind as a profiler
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,只要可执行文件是用调试符号编译的,您就可以简单地在外部 shell 中启动它,然后在进程启动后附加调试器:
http://wiki.eclipse.org/CDT/User/FAQ#Can_I_debug_a_process_that_I_didn.27t_develop_in_Eclipse.3F
在该常见问题解答项目的屏幕截图中,您会对“C/C++附加到应用程序”启动配置。
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
On the screenshot by that FAQ item, you'll be interested in the "C/C++ Attach to Application" Launch Configuration.