使用Eclipse CDT调试ncurses

编程入门 行业动态 更新时间:2024-10-09 06:22:19
本文介绍了使用Eclipse CDT调试ncurses的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Eclipse CDT中使用ncurses编写一个C ++应用程序,但是我无法在eclipse中运行/调试我的应用程序,因为eclipse中的控制台不能使用curses。我的应用程序运行良好,如果我从终端运行它,但我只是添加了一些新的代码,现在我得到一个分段错误,所以我想使用Eclipse中的调试器帮助我解决这个问题。有没有办法让eclipse运行/调试我的应用程序,但使用不同的终端输出很像当你在gdb中的tty / dev / pts / 1?

解决方案

/ div>

,您还应在调试配置对话框中将 TERM = xterm 添加到环境中

I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse to help me fix the issue. Is there a way to have eclipse run/debug my application but use a different terminal for the output much like when you do "tty /dev/pts/1" in gdb? Or any other way to debug a ncures application in eclipse?

Thx in advance!

解决方案

also you should add TERM=xterm to Environment in the Debug Configurations dialog

更多推荐

使用Eclipse CDT调试ncurses

本文发布于:2023-11-24 14:19:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625561.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Eclipse   CDT   ncurses

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!