Code::Blocks Forums

User forums => Help => Topic started by: abc on August 01, 2009, 12:07:13 am

Title: Can I debug an already built executable?
Post by: abc on August 01, 2009, 12:07:13 am
Is it possible to use C::B to debug an already built executable,
besides via "Debug->Attach to process"?

I wish to use C::B as my gdb GUI wrapper on Linux,
but I don't want to use C::B to compile/build my application.

I'm looking to replace ddd and Insight (if you're familiar with them),
with a more modern and capable GUI environment.

These gdb wrappers start by specifying, e.g.
insight --args executable_file command_line_args.
This starts a GUI, with source code, breakpoint, local variables, etc. windows, ready to start running/stepping through the code.

If C::B can not be used for that purpose, do you know of any other Linux solution for that (besides Eclipse)?

Thanks for your help and suggestions.
Title: Re: Can I debug an already built executable?
Post by: abc on August 03, 2009, 12:51:06 am
Nobody knows the answer? :cry:
Title: Re: Can I debug an already built executable?
Post by: oBFusCATed on August 03, 2009, 02:42:29 am
You can try to make a fake project and in the debugger settings to turn off the "build the debuggee" (or something similar).
Title: Re: Can I debug an already built executable?
Post by: abc on August 05, 2009, 07:32:30 am
I tried, but all C::B does is open an xterm and run, which does nothing but run my executable.

Does anyone use C::B as my intended use?