Skip to main content



      Home
Home » Newcomers » Newcomers » How to debug a C/C++ executable that is compiled outside of Eclipse?
How to debug a C/C++ executable that is compiled outside of Eclipse? [message #128048] Fri, 06 January 2006 15:50 Go to next message
Eclipse UserFriend
Originally posted by: qzhang.morphotech.com

Hi everyone,

I'm new to Eclipse. I wonder how to use Eclipse to debug a C/C++ executable
when the executable is compiled by an in command line makefile. Do I have to
create a project in Eclipse first and import all source files and the
executable? Is there a simpler way?

Thank you very much!


Qing
Re: How to debug a C/C++ executable that is compiled outside of Eclipse? [message #128280 is a reply to message #128048] Sat, 07 January 2006 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Qing,

I've never debugged a C app using CDT, but I'm pretty sure that you'll
need to have the source available in Eclipse to be able to debug in a
meaningful way... to be able to choose where to set breakpoints, to know
where you are in the code you're debugging, etc. If you're compiling
externally you also have to ensure that the makefile is compiling with
debug options enabled.

Hope this helps,
- Jeff
Re: How to debug a C/C++ executable that is compiled outside of Eclipse? [message #128570 is a reply to message #128280] Mon, 09 January 2006 13:18 Go to previous message
Eclipse UserFriend
Originally posted by: qzhang.morphotech.com

Hi Jeff,

Thank you very much for your answer!

So we need to create a project and import the files of source code to the
project before debuging? If there are a number of source code files, then we
need to add these files one by one. Is there a simpler way to debug?

Thank you again!

Qing


"Jeff Myers" <myersj@gmail.com> wrote in message
news:dpolcq$600$1@utils.eclipse.org...
> Qing,
>
> I've never debugged a C app using CDT, but I'm pretty sure that you'll
> need to have the source available in Eclipse to be able to debug in a
> meaningful way... to be able to choose where to set breakpoints, to know
> where you are in the code you're debugging, etc. If you're compiling
> externally you also have to ensure that the makefile is compiling with
> debug options enabled.
>
> Hope this helps,
> - Jeff
Previous Topic:opening file from command line
Next Topic:User input at runtime??
Goto Forum:
  


Current Time: Sun Nov 09 04:19:41 EST 2025

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

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

Back to the top