I have a script, in which I run a C++ application. Is it possible to start eclipse debug session from a script? I use gdb 7.4
Asked
Active
Viewed 122 times
0
-
I can change the way I run the application in the script... – DuduArbel Feb 23 '15 at 14:29
-
what debugger are you using? – Freddy Feb 23 '15 at 14:33
-
Not sure I understand the question. I use Luna eclipse, open my C++ project and run – DuduArbel Feb 23 '15 at 14:36
-
The answer to your question depends on the compiler/debugger you're using. I believe eclipse can use either clang++ or g++ for its c++ compiler, both of those require have their own debugger. Once you figure out which compiler/debugger you're using all you have to do is read how to launch your debug build from the debugger. – Freddy Feb 23 '15 at 14:38
-
This should answer your question. http://stackoverflow.com/questions/14370972/how-to-attach-a-process-in-gdb – Freddy Feb 23 '15 at 14:41
-
I use gdb 7.4 debugger – DuduArbel Feb 23 '15 at 14:41
-
2possible duplicate of [Is it possible to attach a debugging session to a running program in eclipse CDT](http://stackoverflow.com/questions/655853/is-it-possible-to-attach-a-debugging-session-to-a-running-program-in-eclipse-cdt) – Nemanja Boric Feb 23 '15 at 14:42
-
Thanks for the suggestions, but they dont solve my issue. Today I run the application from the script - with no debugging. After it is run - its already to late to start debugging. I need a way to start the debug session from the script. – DuduArbel Feb 23 '15 at 14:47
-
or to enable Eclipse to automatically identify running this application, and attach the debugger to it – DuduArbel Feb 23 '15 at 14:56