PB and CLI apps

  • In 10.2 PB worked fine with debugging CLI apps. In 10.3 it seems to not
    take standard input from the console. Is there a work around for this?

    Cheers,
    Steve
    OSX freeware and shareware: http://www.dekorte.com/downloads.html
  • On Sunday, August 3, 2003, at 2:23 AM, Steve Dekorte wrote:
    > In 10.2 PB worked fine with debugging CLI apps. In 10.3 it seems to
    > not take standard input from the console. Is there a work around for
    > this?

    An example - create a standard tool project and set main to the
    following and then run the debugger and try to test the program:

    #include <stdio.h>

    int main (int argc, const char * argv[])
    {
      printf(">");
      while (1)
      {
        int c = fgetc(stdin);
        printf("got character: '%c'\n", c);
      }
      return 0;
    }
  • Just to make this isn't the problem, you are using the Standard I/O tab
    in the debugger window, not the Console tab, are you?

    cheers
    Stef

    On Sonntag, August 3, 2003, at 11:01 PM, Steve Dekorte wrote:

    >
    > On Sunday, August 3, 2003, at 2:23 AM, Steve Dekorte wrote:
    >> In 10.2 PB worked fine with debugging CLI apps. In 10.3 it seems to
    >> not take standard input from the console. Is there a work around for
    >> this?
    >
    > An example - create a standard tool project and set main to the
    > following and then run the debugger and try to test the program:
    >
    > #include <stdio.h>
    >
    > int main (int argc, const char * argv[])
    > {
    > printf(">");
    > while (1)
    > {
    > int c = fgetc(stdin);
    > printf("got character: '%c'\n", c);
    > }
    > return 0;
    > }
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
  • On Sunday, August 3, 2003, at 2:21 PM, Stefan Wiesendanger wrote:
    > Just to make this isn't the problem, you are using the Standard I/O
    > tab in the debugger window, not the Console tab, are you?

    I'm using the console window. I don't see any "Standard I/O" tab in
    XCode. Can you send me a screenshot pointing it out?

    Cheers,
    Steve
    OSX freeware and shareware: http://www.dekorte.com/downloads.html
  • In Xcode, chose Debug -> Show Stdio from the menu

    On Sonntag, August 3, 2003, at 11:46 PM, Steve Dekorte wrote:

    >
    > On Sunday, August 3, 2003, at 2:21 PM, Stefan Wiesendanger wrote:
    >> Just to make this isn't the problem, you are using the Standard I/O
    >> tab in the debugger window, not the Console tab, are you?
    >
    > I'm using the console window. I don't see any "Standard I/O" tab in
    > XCode. Can you send me a screenshot pointing it out?
    >
    > Cheers,
    > Steve
    > OSX freeware and shareware: http://www.dekorte.com/downloads.html
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
  • On Sunday, August 3, 2003, at 3:25 PM, Stefan Wiesendanger wrote:
    > In Xcode, chose Debug -> Show Stdio from the menu

    Thanks - that's what I was looking for. Would be nice if this was next
    to the console...

    Cheers,
    Steve
    OSX freeware and shareware: http://www.dekorte.com/downloads.html