简体   繁体   English

使用Eclipse CDT调试ncurses

[英]Debugging ncurses with Eclipse CDT

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. 我在Eclipse CDT中使用ncurses编写C ++应用程序但是我无法在eclipse中运行/调试我的应用程序,因为eclipse中的控制台不能与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. 如果我从终端运行它,我的应用程序运行正常,但我刚刚添加了一些新代码,现在我遇到了分段错误,所以我想在eclipse中使用调试器来帮助我解决问题。 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? 有没有办法让eclipse运行/调试我的应用程序,但使用不同的终端输出,就像你在gdb中执行“tty / dev / pts / 1”一样? Or any other way to debug a ncures application in eclipse? 或者在eclipse中调试ncures应用程序的任何其他方法?

Thx in advance! Thx提前!

您还应该在“调试配置”对话框中将TERM=xterm添加到Environment

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

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