Is it possible to debug a command-line tool?
Is it possible to debug a command-line tool?
- Subject: Is it possible to debug a command-line tool?
- From: Thomas Lachand-Robert <email@hidden>
- Date: Sat, 20 Dec 2003 23:15:45 +0100
I would like to run some tests for my app, and for that it is useful to
have a command-line tool where I can input some requests and see the
computed answers. This works when I use "run", but not when I use
"debug": when reading the data in the pseudo-terminal, nothing happens.
I read the typed data as follows:
NSFileHandle* infh = [NSFileHandle fileHandleWithStandardInput];
NSData* indata = [infh availableData];
NSString* instr = [[NSString alloc] initWithData:indata encoding:nil];
This apparently interfere with the gdb console, so should I conclude
that it is not possible to debug a command-line tool in XCode?
Thanks,
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.