[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



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>