• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Debugging a Curses Program on Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging a Curses Program on Mac OS X


  • Subject: Debugging a Curses Program on Mac OS X
  • From: Thomas Wetmore <email@hidden>
  • Date: Wed, 18 Mar 2015 08:24:12 -0400

I am converting an old, large C program that uses curses for its user interface to Mac OS X. It is now ported and partly working.

I am trying to find an effective way to debug the program.

1. If I try to run it under Xcode’s debugger, because the Xcode debug console does not have a terminal emulator (at least I don’t think it does), weird things happen in the console, and it is difficult to keep things straight in the head.

2. If I try to run it in its own terminal and attach it to Xcode’s debugger, the very act of going back and forth between the two processes causes the curses system to do things independent of the program, and the program always exits very soon with no apparent cause and hitting no exception breakpoint.

3. Checking google, the GNU debugger has a “tty” command that can be used to direct the output of a program being debugged to a specific terminal. This seems like the perfect solution for me, but the Xcode debugger does not seem to have this facility.

Currently I’m stuck on option 1 and looking for something better. Any advice? Thanks,

Tom Wetmore
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging a Curses Program on Mac OS X
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Can tools ever be bundles?
  • Next by Date: Re: Debugging a Curses Program on Mac OS X
  • Previous by thread: Re: Can tools ever be bundles?
  • Next by thread: Re: Debugging a Curses Program on Mac OS X
  • Index(es):
    • Date
    • Thread