Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » launch external tool in debug mode
launch external tool in debug mode [message #632111] Mon, 11 October 2010 15:28 Go to next message
Eclipse UserFriend
Hi,
I just switched to eclipse helios for c++ dev on mac osx.

As a test I made a simple terminal application which uses ncurses.
I created an external tools configuration to launch the binary in the terminal (using the console for output fails for obvious reasons because of ncurses).

Now I want to debug, how can I setup the debug configuration to launch the application in terminal.

Thanks
Re: launch external tool in debug mode [message #632732 is a reply to message #632111] Thu, 14 October 2010 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Does this help you http://wiki.eclipse.org/CDT/User/FAQ#HOWTO_debug_application s_which_require_a_real_terminal ?
Re: launch external tool in debug mode [message #632914 is a reply to message #632732] Thu, 14 October 2010 16:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Thanks for the reply.

I tried attaching the debugger to an xterm windows (which it does I think), but I'm not getting any output in the terminal, also eclipse gives me a "No source available" error with an option to "View Disassembly" and won't let me step through the code.

Quote:
Does this help you http://wiki.eclipse.org/CDT/User/FAQ#HOWTO_debug_application s_which_require_a_real_terminal ?


Although I followed the instructions and eclipse let's me pick the terminal from the list of processes, it doesn't really work.

What do other people use to debug applications?
I hope this doesn't mean that you can only debug simple applications that only use eclipse console?

Re: launch external tool in debug mode [message #633099 is a reply to message #632914] Fri, 15 October 2010 11:36 Go to previous message
Eclipse UserFriend
Quote:
Although I followed the instructions and eclipse let's me pick the terminal from the list of processes, it doesn't really work.

Then you did not follow the instructions. I just tried here and it did work as expected. You should debug your application as "Local C/C++ application" and not attach gdb to the terminal.
Previous Topic:Installing Eclipse and Cygwin - Getting started
Next Topic:CILK++ Compiler
Goto Forum:
  


Current Time: Sun Feb 09 22:16:07 GMT 2025

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

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

Back to the top