How can I use Eclipse to debug a (C/C++) console program running external from Eclipse? I'd like to click the Debug button to launch the external console (Cygwin shell in Windows; or Terminal in OS X) and break in main().
3 Answers
You can attach your debug session to an external application:
Is it possible to attach a debugging session to a running program in eclipse CDT
Greetings
Comments
If an alternative is fine, xxgdb should do most of what you need. And gdb, if you intend work from terminal. refer this article
Comments
Not sure if this helps, but you can log messages to this website in a few lines of code (if your program has internet access). Its like a cloud based console.