News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Debug in a separate window?

Started by Keeper, December 29, 2009, 10:52:14 PM

Previous topic - Next topic

Keeper

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

oBFusCATed

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!]

Keeper

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!

oBFusCATed

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!]

Keeper

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.

Keeper

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?

oBFusCATed

Quote from: Keeper on August 15, 2010, 02:59:27 AM
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!]

Keeper

Sounds good!  I'm going to use it/test it all the time ... I'll post back here if I see any issues.

oBFusCATed

(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!]