Welcome to GameHourz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

using a c debugger with a curses program

 
   Game Forums (Home) -> Roguelike -> Development RSS
Related Topics:
*curses - I currently have my game in a windows console, and was thinking of switching over to curses. If I did this, could I use more than the 15 base colors? I am pretty sure I read somewhere about 256 colors with curses but I cant find what I was looking at.

C++ interface to curses - Hi guys, I've recently been working a bit on my roguelike after a long holiday and I've started my IO code to be a little more wieldy. At the moment it's but I have built a very handy C++ interface to curses and I can imagine..

[C/C++] Curses refresh problem - Hi all. I'm making a roguelike as an project for class, and I'm having a problem with PDcurses. The way I it, the virtual screen is never supposed to appear on the physical screen until I refresh refresh,

[Curses] Black and white - I'm in process of porting my RL engine to Linux (actually I'm working with Cygwin), and I have very strange problem. For some reason curses window is unable to change colors with attrset. Only A_BOLD flag works. So, the two color schemes I get are gray on

curses trouble no. 21390: resizeterm / init_color - The (N)curses functions / do not seem to work. I have tried multiple vterms (xterm, rxvt) and the Linux console : all of them ignored the command. When running in a vterm the output works IF you resize..
Next:  7drl beginning announcement  
Author Message
Ido Yehieli

External


Since: Nov 29, 2007
Posts: 75



(Msg. 1) Posted: Sat Jan 26, 2008 11:18 am
Post subject: using a c debugger with a curses program
Archived from groups: rec>games>roguelike>development (more info?)

Hi all,
it seems ddd doesn't work all to well with programs running
pdcurses (it kind of works for a short while and then crashes more
often than not). Insight doesn't even manage to start my game...

Does anyone have any idea on how to use a debugger under these
circumstances? Using ncursese doesn't seem to help much either.

-Ido.

 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
coppro

External


Since: Nov 24, 2007
Posts: 21



(Msg. 2) Posted: Sat Jan 26, 2008 4:52 pm
Post subject: Re: using a c debugger with a curses program [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 26, 12:18 pm, Ido Yehieli <Ido.Yehi... DeleteThis @gmail.com> wrote:
> Hi all,
> it seems ddd doesn't work all to well with programs running
> pdcurses (it kind of works for a short while and then crashes more
> often than not). Insight doesn't even manage to start my game...
>
> Does anyone have any idea on how to use a debugger under these
> circumstances? Using ncursese doesn't seem to help much either.
>

Run your debugger from a separate terminal window and remotely attach
it to the process.

It will save you *massive* headaches.

I haven't have experience using DDD, though. *goes and installs DDD*

We'll see what happens.

 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
Martin Read

External


Since: Mar 23, 2005
Posts: 552



(Msg. 3) Posted: Sat Jan 26, 2008 10:42 pm
Post subject: Re: using a c debugger with a curses program [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ido Yehieli <Ido.Yehieli.RemoveThis@gmail.com> wrote:
>Hi all,
> it seems ddd doesn't work all to well with programs running
>pdcurses (it kind of works for a short while and then crashes more
>often than not). Insight doesn't even manage to start my game...
>
>Does anyone have any idea on how to use a debugger under these
>circumstances? Using ncursese doesn't seem to help much either.

I find that gdb works just fine with ncurses programs on Linux.

What platform are you using?
--
\_\/_/ some girls wander by mistake into the mess that scalpels make
\ / are you the teachers of my heart? we teach old hearts to break
\/ --- Leonard Cohen, "Teachers"
 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
coppro

External


Since: Nov 24, 2007
Posts: 21



(Msg. 4) Posted: Sat Jan 26, 2008 11:05 pm
Post subject: Re: using a c debugger with a curses program [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 26, 5:52 pm, coppro <ride....TakeThisOut@gmail.com> wrote:
> On Jan 26, 12:18 pm, Ido Yehieli <Ido.Yehi....TakeThisOut@gmail.com> wrote:
>
> > Hi all,
> > it seems ddd doesn't work all to well with programs running
> > pdcurses (it kind of works for a short while and then crashes more
> > often than not). Insight doesn't even manage to start my game...
>
> > Does anyone have any idea on how to use a debugger under these
> > circumstances? Using ncursese doesn't seem to help much either.
>
> Run your debugger from a separate terminal window and remotely attach
> it to the process.
>
> It will save you *massive* headaches.
>
> I haven't have experience using DDD, though. *goes and installs DDD*
>
> We'll see what happens.

Some preliminary experimentation with DDD has no troubles as long as I
attach it separately - there's no hope trying to get it to start
internally. It even pops up with a list of processes when you go File-
>Attach Process..., so it's easy to pick the right one. No crashes as
of yet.
 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
Ido Yehieli

External


Since: Nov 29, 2007
Posts: 75



(Msg. 5) Posted: Sat Jan 26, 2008 11:50 pm
Post subject: Re: using a c debugger with a curses program [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 27, 8:05 am, coppro <ride....DeleteThis@gmail.com> wrote:
> Some preliminary experimentation with DDD has no troubles as long as I
> attach it separately - there's no hope trying to get it to start
> internally. It even pops up with a list of processes when you go File->Attach Process..., so it's easy to pick the right one. No crashes as
> of yet.

Yea, I got it working now.

Thanks,
Ido.
 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
chris.hamons

External


Since: Nov 18, 2007
Posts: 2



(Msg. 6) Posted: Mon Jan 28, 2008 9:14 am
Post subject: Re: using a c debugger with a curses program [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I find that kdbg (http://www.kdbg.org/) is a good front end to gdb.

--Chris

On Jan 27, 1:50 am, Ido Yehieli <Ido.Yehi... RemoveThis @gmail.com> wrote:
> On Jan 27, 8:05 am, coppro <ride... RemoveThis @gmail.com> wrote:
>
> > Some preliminary experimentation with DDD has no troubles as long as I
> > attach it separately - there's no hope trying to get it to start
> > internally. It even pops up with a list of processes when you go File->Attach Process..., so it's easy to pick the right one. No crashes as
> > of yet.
>
> Yea, I got it working now.
>
> Thanks,
> Ido.
 >> Stay informed about: using a c debugger with a curses program 
Back to top
Login to vote
Display posts from previous:   
   Game Forums (Home) -> Roguelike -> Development All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]