Author Topic: How to set debugee in gdb  (Read 2950 times)

Offline Conker

  • Single posting newcomer
  • *
  • Posts: 7
How to set debugee in gdb
« on: February 19, 2014, 12:16:28 am »
Can someone please tell me how to set custom executable as debugee in gdb ? I'm using .make file to build executable , then copy it into other place and run it from there.
Manually attaching debugger to running process is working fine, with source breakpoints and stuff. So I wonder if there is a way to specify in the CodeBlocks gui the path of debugee, so I wont need to manually attach to the process and just run it with simple Debug command  ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to set debugee in gdb
« Reply #1 on: February 19, 2014, 01:12:35 am »
Have you tried to set the Project -> Properties -> Build target -> Output filename?
(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 Conker

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to set debugee in gdb
« Reply #2 on: February 19, 2014, 12:28:54 pm »
Great.That works, thanks.