Author Topic: Debug in a separate window?  (Read 10318 times)

Offline Keeper

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Debug in a separate window?
« Reply #15 on: August 09, 2010, 05:19:37 am »
I'm getting this:
warning: GDB: Failed to set controlling terminal: Operation not permitted

Also, is it possible to set the path to the executable?  it needs to be run from a different directory than the codebase.  I have tried several things, but I seem to be missing it.

Thanks!
Keeper

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12123
    • Travis build status
Re: Debug in a separate window?
« Reply #16 on: August 09, 2010, 09:24:15 am »
1. The warning is emitted by gdb and it is not a problem.
2. You can set the working directory in Project -> Properties -> Build options -> Working dir or something like that.
(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 Keeper

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Debug in a separate window?
« Reply #17 on: August 09, 2010, 01:32:40 pm »
Well, I tried to run GDB just on it's own outside of codeblocks and it seems it doesn't work.   I get the "Cannot find new threads: generic error" error.

Oh well.

Thanks for the help!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12123
    • Travis build status
Re: Debug in a separate window?
« Reply #18 on: August 09, 2010, 02:16:04 pm »
This seems like a very popular gdb problem, use your favorite search engine to find solutions for it.
(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 Keeper

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Debug in a separate window?
« Reply #19 on: August 09, 2010, 02:53:02 pm »
Well I tried just GDB on my lenny distro and it worked.  Must be some kind of issue with the newest Ubuntu.

I'm going to reload my lenny and see if I can get it to work there.

Offline Keeper

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Debug in a separate window?
« Reply #20 on: August 15, 2010, 02:59:27 am »
Ok, after many problems with Ubuntu.  I finally reloaded Debian.  Of course, my hard drive went out, and then I couldn't get the "debuggers branch" to compile on lenny.  I figured out the issues and got it compiled.

Worked like a charm.  Cheers!

Will this make it to the main distro?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12123
    • Travis build status
Re: Debug in a separate window?
« Reply #21 on: August 15, 2010, 12:54:50 pm »
Will this make it to the main distro?
Of C::B? Yes it will, someday, but first it needs some testing...
(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 Keeper

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Debug in a separate window?
« Reply #22 on: August 15, 2010, 02:50:57 pm »
Sounds good!  I'm going to use it/test it all the time ... I'll post back here if I see any issues.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12123
    • Travis build status
Re: Debug in a separate window?
« Reply #23 on: August 15, 2010, 04:46:46 pm »
Please post in http://forums.codeblocks.org/index.php/topic,10908.0.html if you find problems...
(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!]