<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Debugging on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/debugging/</link>
		<description>Recent content in Debugging on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 23 Mar 2012 16:48:43 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/debugging/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>PHP, Sessions, __sleep, and Exceptions</title>
				<link>https://www.justincarmony.com/2012/03/23/php-sessions-__sleep-and-exceptions/</link>
				<pubDate>Fri, 23 Mar 2012 16:48:43 +0000</pubDate>
				<guid>https://www.justincarmony.com/2012/03/23/php-sessions-__sleep-and-exceptions/</guid>
				<description>&lt;p&gt;Today I ran into a problem where my PHP Application would throw this fatal error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fatal error: Exception thrown without a stack frame in Unknown on line 0&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Which is so much fun, because it doesn&amp;rsquo;t have a line number, so I had no direction as to what exactly was causing the problem. Some quick googling came up with &lt;a href=&#34;http://www.compdigitec.com/labs/2009/08/02/solving-fatal-error-exception-thrown-without-a-stack-frame-in-unknown-on-line-0/&#34;&gt;this website&lt;/a&gt; stating the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Most often, the error will appear if you use an exception handler combined with an error reporting to exception handler by converting it to an ErrorException, then there a suddenly a whole new magnitude of ways to throw errors within the exception handle, especially if E_NOTICE, E_STRICT and/or E_WARNING errors are converted. This form most often occurs when you use variables without first initializing them. This error may be preventable by wrapping the exception handler within a try/catch block.&lt;/p&gt;</description>
			</item>
			<item>
				<title>PHP, SoapClient, SoapServer, and Timeouts</title>
				<link>https://www.justincarmony.com/2011/02/13/php-soapclient-soapserver-and-timeouts/</link>
				<pubDate>Sun, 13 Feb 2011 00:50:58 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/02/13/php-soapclient-soapserver-and-timeouts/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2011/02/soap.jpg&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/2011/02/soap-150x150.jpg&#34; alt=&#34;&#34; title=&#34;soap&#34;&gt;&lt;/a&gt;I ran into an extremely frustrating problems while trying to add a test script for some PHP web services. I won&amp;rsquo;t go into detail on all the different things I went through to debug this problem. But here is what it all boiled down to:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have a SOAP Web Service that extends PHP&amp;rsquo;s internal SoapServer class that serves hundreds of thousands of remote devices. Every now and then, our server will have a hiccup and our Web Service won&amp;rsquo;t return valid responses. However, nginx will return requests just fine. So, to monitor the Web Service, I wrote a PHP script using SoapClient to read the WSDL, make several SOAP calls, and make sure the responses are valid.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debuging with PHP, Stack Traces, and Redis</title>
				<link>https://www.justincarmony.com/2011/01/10/debugging-with-php-stack-traces-and-redis/</link>
				<pubDate>Mon, 10 Jan 2011 23:22:56 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/01/10/debugging-with-php-stack-traces-and-redis/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2011/01/php-logo.jpg&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/2011/01/php-logo-300x210.jpg&#34; alt=&#34;&#34; title=&#34;php-logo&#34;&gt;&lt;/a&gt;A cool new trick I found with debugging pieces of code and how often they get executed. We were running into a problem where an expensive query was being called more frequently than I thought it should. This query was only found inside of a single member of a class. However, this class, which retrieves a user&amp;rsquo;s photo album, is used all over the place. So it was really hard to determine exactly where the unneeded queries being executed from.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
