Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging ncurses application in Eclipse CDT (Linux)
Debugging ncurses application in Eclipse CDT (Linux) [message #1821143] Thu, 06 February 2020 05:06 Go to next message
Eclipse UserFriend
I'm creating an ncurses application in the Eclipse IDE (for C/C++ developers), running on Linux Mint. I'm able to successfully launch the application in the gnome terminal from Eclipse, via the following run configuration:

Quote:
C/C++ Application: /usr/bin/gnome-terminal

Arguments tab:

Program arguments: -e ./nameofproject*

** you can add --window-with-profile=PROFILENAME gnome-terminal setting to run it with other profiles.

Working directory:

Here set the exactly file location directory:

${workspace_loc:nameofproject/Debug}

And deselect 'Use default'

Environment tab:

No changes

Common tab:

Deselect Allocate Console (necessary for input) in Standard Input and Output frame.

Apply and run.


However, so far I've been unable to run the Eclipse debugger alongside the gnome terminal. The aforementioned Run Configuration doesn't work for debugging. Running the debugger within Eclipse's console doesn't work, since I receive the "Error opening terminal: unknown." message, after which the application is terminated. The "Attach to Application" option doesn't seem to work either, I'm only seeing "failure to attach to process" errors when trying to attach the debugger to the application launched from the gnome terminal.

Any suggestions?

Many thanks,

Ksawery
Re: Debugging ncurses application in Eclipse CDT (Linux) [message #1821185 is a reply to message #1821143] Thu, 06 February 2020 13:20 Go to previous message
Eclipse UserFriend
I can understand that you can't launch an ncurses app from Eclipse.
I don't think it's possible to even launch it from gdb.
Also, the Eclipse console likely wouldn't work with ncurses.

You should be able to attach to it though.
You haven't given enough info to even hazard a guess as to why it can't.

Have you tried attaching from outside of Eclipse?
Here's a discussion about it
https://stackoverflow.com/questions/11965328/debugging-ncurses-application-with-gdb
Previous Topic:No "automatic" save , build, refresh after errors detected / edited
Next Topic:Why only some of the methods of a template are allowed to be defined outside of class?
Goto Forum:
  


Current Time: Tue Jun 24 06:05:13 EDT 2025

Powered by FUDForum. Page generated in 0.03664 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top