Debugging ncurses application in Eclipse CDT (Linux) [message #1821143] |
Thu, 06 February 2020 05:06  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03664 seconds