[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sat Jan 22 21:58:45 2005 -->
- <!--x-from-r13: rfbgrevp ng 3gvzrf25.arg (Urbsserl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: 0bcd01c500f2$91557670$bb00a8c0@Ringo --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] gcc programming -->
- <li><em>date</em>: Sat Jan 22 21:58:45 2005</li>
- <li><em>from</em>: esoteric at 3times25.net (Geoffrey)</li>
- <li><em>in-reply-to</em>: <0bcd01c500f2$91557670$bb00a8c0@Ringo></li>
- <li><em>references</em>: <0bcd01c500f2$91557670$bb00a8c0@Ringo></li>
- <li><em>subject</em>: [ale] gcc programming</li>
This is probably as good a place as any I suspect.
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
--
Until later, Geoffrey
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00886" href="msg00886.html">[ale] gcc programming</a></strong>
<ul><li><em>From:</em> ale at FultonGreen.com (Fulton Green)</li></ul></li>
<li><strong><a name="00907" href="msg00907.html">[ale] gcc programming</a></strong>
<ul><li><em>From:</em> danscox at mindspring.com (Danny Cox)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00872" href="msg00872.html">[ale] gcc programming</a></strong>
<ul><li><em>From:</em> ringo at margaritasrus.com (ringo)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00880.html">[ale] gcc programming</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00882.html">[ale] comcast static IP?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00880.html">[ale] gcc programming</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00886.html">[ale] gcc programming</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00881"><strong>Date</strong></a></li>
<li><a href="threads.html#00881"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>