<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Debugging_code</title><link>https://sourceforge.net/p/plplot/wiki/Debugging_code/</link><description>Recent changes to Debugging_code</description><atom:link href="https://sourceforge.net/p/plplot/wiki/Debugging_code/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 01 Nov 2018 22:30:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/wiki/Debugging_code/feed" rel="self" type="application/rss+xml"/><item><title>Debugging_code modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Debugging_code/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,15 @@
+
+
 PLplot provides some functions to help you debug the core code or driver code. You can find these function declarations in include/pldebug.h. I'll provide a short summary on this page.

 ### Macro definitions
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Thu, 01 Nov 2018 22:30:17 -0000</pubDate><guid>https://sourceforge.net312865a09b7e5c76505a8d5929e52b9140706706</guid></item><item><title>Debugging_code modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Debugging_code/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 05 Oct 2014 19:13:41 -0000</pubDate><guid>https://sourceforge.netf08653a07113220a010e56d0c593cfb5adf362ad</guid></item><item><title>Debugging_code modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Debugging_code/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;PLplot provides some functions to help you debug the core code or driver code. You can find these function declarations in include/pldebug.h. I'll provide a short summary on this page.&lt;/p&gt;
&lt;h3 id="macro-definitions"&gt;Macro definitions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;tt&gt;DEBUG&lt;/tt&gt;: If set the function pldebug() will produce output, otherwise the code in pldebug() will be skipped. In addition must run your program with the option &lt;tt&gt;-debug&lt;/tt&gt; to produce output.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;NEED_PLDEBUG&lt;/tt&gt;: The function &lt;tt&gt;pldebug()&lt;/tt&gt; is only defined if &lt;tt&gt;NEED_PLDEBUG&lt;/tt&gt; is set. Otherwise this function is not known.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;DEBUG_ENTER&lt;/tt&gt;: The function &lt;tt&gt;dbug_enter( message )&lt;/tt&gt; will produce output.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;DEBUGGING_MALLOC&lt;/tt&gt;: ???&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="debugging-functions"&gt;Debugging functions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;tt&gt;pldebug( label, format [, arg1, arg2, ...] )&lt;/tt&gt; : This functions creates an output message defined by the format string &lt;tt&gt;format&lt;/tt&gt; and the arguments &lt;tt&gt;arg1, arg2, ...&lt;/tt&gt; (equivalent to &lt;tt&gt;printf()&lt;/tt&gt;) where the string &lt;tt&gt;label&lt;/tt&gt; is prepended. To enable printing of debugging output, you must &lt;tt&gt;#define DEBUG&lt;/tt&gt; before including plplotP.h or specify -DDEBUG in the compile line, for each file that you want to have debug output enabled. When running the program you must in addition specify &lt;tt&gt;-debug&lt;/tt&gt;. This allows debugging output to tailored to many different circumstances but otherwise be fairly unobtrusive. Note, any file that actually uses &lt;tt&gt;pldebug()&lt;/tt&gt; must also define &lt;tt&gt;NEED_PLDEBUG&lt;/tt&gt; before the &lt;tt&gt;plplotP.h&lt;/tt&gt; include. This is to eliminate warnings caused by those files in which this is defined but never referenced.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;dbug_enter(a)&lt;/tt&gt; : This function will put the string &lt;pre&gt; entered a (&lt;strong&gt;FILE&lt;/strong&gt;, line &lt;strong&gt;LINE&lt;/strong&gt;)\n&lt;/pre&gt; to &lt;tt&gt;stderr&lt;/tt&gt; if the macro &lt;tt&gt;DEBUG_ENTER&lt;/tt&gt; is set.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The content of this page is available under the &lt;a class="" href="http://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;GNU Free Documentation License 1.2&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Thu, 02 Oct 2014 03:38:03 -0000</pubDate><guid>https://sourceforge.net7bb8697920a0b61a69c80186f5a2b9d8a986e195</guid></item></channel></rss>