Author Topic: Can I debug an already built executable?  (Read 4230 times)

Offline abc

  • Single posting newcomer
  • *
  • Posts: 3
Can I debug an already built executable?
« 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.

Offline abc

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can I debug an already built executable?
« Reply #1 on: August 03, 2009, 12:51:06 am »
Nobody knows the answer? :cry:

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can I debug an already built executable?
« Reply #2 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).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline abc

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can I debug an already built executable?
« Reply #3 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?