<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debugging tips</title>
	<atom:link href="http://jimmers.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmers.info</link>
	<description>Windows, Mac OS X, Linux, Symbian</description>
	<lastBuildDate>Sun, 09 Oct 2011 23:05:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Debugging VPN issues on Mac OS X Lion</title>
		<link>http://jimmers.info/2011/10/09/debugging-vpn-issues-on-mac-os-x-lion/</link>
		<comments>http://jimmers.info/2011/10/09/debugging-vpn-issues-on-mac-os-x-lion/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 22:42:16 +0000</pubDate>
		<dc:creator>jimm3rs</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://jimmers.info/?p=21</guid>
		<description><![CDATA[Mac OS X Lion uses open-source package ip-sec for its built-in VPN support. It is easy enough to setup debug-level logging to troubleshoot issues with VPN: just add a file called com.apple.ipsec.plist under /Library/Preferences/SystemConfiguration directory. File should contain the following xml structure: &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&#62; &#60;plist version="1.0"&#62; &#60;dict&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Mac OS X Lion uses open-source package <a href="http://www.opensource.apple.com/tarballs/ipsec/ipsec-146.1.tar.gz"><code>ip-sec</code></a> for its built-in VPN support. It is easy enough to setup debug-level logging to troubleshoot issues with VPN: just add a file called <code>com.apple.ipsec.plist</code> under <code>/Library/Preferences/SystemConfiguration</code> directory. File should contain the following xml structure:<br />
<code><br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;<br />
&lt;plist version="1.0"&gt;<br />
&lt;dict&gt;<br />
                                &lt;key&gt;Global&lt;/key&gt;<br />
                                &lt;dict&gt;<br />
                                        &lt;key&gt;DebugLevel&lt;/key&gt;<br />
                                        &lt;integer&gt;2&lt;/integer&gt;<br />
                                        &lt;key&gt;DebugLogfile&lt;/key&gt;<br />
                                        &lt;string&gt;/Users/martin/jazz.log&lt;/string&gt;<br />
                                &lt;/dict&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;<br />
</code></p>
<p>Next time VPN connection is initiated there will be debug log created in the <code>/Users/martin/jazz.log</code> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimmers.info/2011/10/09/debugging-vpn-issues-on-mac-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X debugger presence check</title>
		<link>http://jimmers.info/2011/04/26/mac-os-x-debugger-presence-check/</link>
		<comments>http://jimmers.info/2011/04/26/mac-os-x-debugger-presence-check/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 01:41:47 +0000</pubDate>
		<dc:creator>jimm3rs</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://jimmers.info/?p=9</guid>
		<description><![CDATA[This piece of code is designed to determine if the application runs under debugger. I found it at http://borkware.com/quickies/single?id=182 #include &#60;stdio.h&#62; #include &#60;sys/sysctl.h&#62; #include &#60;errno.h&#62; int main(int argc, char * argv[]) { int mib[4]; size_t size; mib[0] = CTL_KERN; mib[1] = KERN_PROC; mib[2] = KERN_PROC_PID; mib[3] = getpid(); struct kinfo_proc info; info.kp_proc.p_flag = 0; size [...]]]></description>
			<content:encoded><![CDATA[<p>This piece of code is designed to determine if the application runs under debugger. I found it at <a href="http://borkware.com/quickies/single?id=182">http://borkware.com/quickies/single?id=182</a></p>
<pre>#include &lt;stdio.h&gt;
#include &lt;sys/sysctl.h&gt;
#include &lt;errno.h&gt;

int main(int argc, char * argv[])
{
    int mib[4];
    size_t size;

    mib[0] = CTL_KERN;
    mib[1] = KERN_PROC;
    mib[2] = KERN_PROC_PID;
    mib[3] = getpid();

    struct kinfo_proc info;

    info.kp_proc.p_flag = 0;

    size = sizeof(info);

    if ( sysctl(mib, 4, &amp;info, &amp;size, NULL, 0) )
    {
        printf("Error: %d\n", errno);
        return 1;
    }

    if((info.kp_proc.p_flag &amp; P_TRACED) == P_TRACED)
    {
        printf("This program is being debugged.\n");
    }

    return 0;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://jimmers.info/2011/04/26/mac-os-x-debugger-presence-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jimmers.info/2011/04/25/5/</link>
		<comments>http://jimmers.info/2011/04/25/5/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 21:03:32 +0000</pubDate>
		<dc:creator>jimm3rs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jimmers.info/?p=5</guid>
		<description><![CDATA[Send any questions to: support at jimmers info]]></description>
			<content:encoded><![CDATA[<p>Send any questions to: support at jimmers info</p>
]]></content:encoded>
			<wfw:commentRss>http://jimmers.info/2011/04/25/5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

