[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] gcc programming
- Subject: [ale] gcc programming
- From: ale at FultonGreen.com (Fulton Green)
- Date: Sat Jan 22 22:51:00 2005
- In-reply-to: <[email protected]>; from [email protected] on Sat, Jan 22, 2005 at 09:52:41PM -0500
- References: <0bcd01c500f2$91557670$bb00a8c0@Ringo> <[email protected]>
On Sat, Jan 22, 2005 at 09:52:41PM -0500, Geoffrey wrote:
> You'll likely want to write the debug info to standard error and capture.
>
> Here's how I do it in C so that I can track where the data was spit out:
>
> (void)fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, debugdata);
>
> Then when you run your program, do this:
>
> program 2> program.err
Which is basically what I said in my post earlier tonight, except I was
too lazy to copy 'n' paste the printf() example from Google.
Geoffrey ... did you not receive my earlier post?