{"id":437,"date":"2010-01-04T10:58:52","date_gmt":"2010-01-04T14:58:52","guid":{"rendered":"http:\/\/kellytehuna.com\/blog\/?p=437"},"modified":"2010-01-04T11:16:35","modified_gmt":"2010-01-04T15:16:35","slug":"it-always-the-simplest-thing","status":"publish","type":"post","link":"http:\/\/kellytehuna.com\/blog\/2010\/01\/04\/it-always-the-simplest-thing\/","title":{"rendered":"It always the simplest thing!"},"content":{"rendered":"<p>I&#8217;ve been trying for MONTHS to get the very excellent <a title=\"XDebug\" href=\"http:\/\/xdebug.org\">XDebug PHP extension<\/a>, written and maintained the PHP Jedi Master,\u00a0<a title=\"Derick Rethans\" href=\"http:\/\/derickrethans.nl\/\">Derick Rethans<\/a>. XDebug offers some serious debugging capabilities to PHP that are second to none. It also offers some excellent profiling tools, which I should really make better use of in development. It&#8217;s easy to see why I was so desperate to get it working.<!--more--><\/p>\n<p>For months, whenever I would enable the extension in my php.ini file, every time I tried to load a page (after restarting Apache, of course), Apache would crash, displaying a blank page, or a partial page at best. This is obviously not ideal. This morning while installing NetBeans IDE, since Aptana Studio has dropped what was once great PHP support to now mediocre tool set, I noticed they had a walk through for configuring Apache and PHP, with XDebug, on their site, so I thought I would take a read through it.<\/p>\n<p>One thing jumped out at me while I was reading the Apache installation instructions and that was to not install it in the default location (C:\\Program Files) because everything in that directory was write protected. That lead me to check the permissions on the XDebug DLL. When I did, I noticed there was a button in the Properties sheet with &#8220;Unblock&#8221; written on it, so I clicked it. I then went to my php.ini and re-enabled XDebug and restarted Apache. I checked my phpinfo sheet to make sure it was loading. Check. Then I loaded up a page I was working on that I knew had an error message on it and sure enough I got to see the beautiful error message that XDebug displays.<\/p>\n<p>After all this time confused as to why XDebug would crash Apache when I knew other people had to be using it, all I had to do was click the unblock button so Vista would allow the DLL to actually run! So annoying!<\/p>\n<div data-carousel-extra='{&quot;blog_id&quot;:1,&quot;permalink&quot;:&quot;http:\/\/kellytehuna.com\/blog\/2010\/01\/04\/it-always-the-simplest-thing\/&quot;}' id='gallery-1' class='gallery galleryid-437 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png?resize=150%2C150\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-438\" srcset=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png?resize=150%2C150 150w, https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png?zoom=2&amp;resize=150%2C150 300w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" data-attachment-id=\"438\" data-permalink=\"http:\/\/kellytehuna.com\/blog\/2010\/01\/04\/it-always-the-simplest-thing\/dll-unblock\/\" data-orig-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png?fit=367%2C502\" data-orig-size=\"367,502\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"dll-unblock\" data-image-description=\"&lt;p&gt;The property sheet for the XDebug DLL, showing the unblock button.&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;The stupid DLL unblock button&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/dll-unblock.png?fit=367%2C502\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-438'>\n\t\t\t\tThe stupid DLL unblock button\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?resize=150%2C150\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-439\" srcset=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?resize=150%2C150 150w, https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" data-attachment-id=\"439\" data-permalink=\"http:\/\/kellytehuna.com\/blog\/2010\/01\/04\/it-always-the-simplest-thing\/error-message\/\" data-orig-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?fit=931%2C249\" data-orig-size=\"931,249\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"error-message\" data-image-description=\"&lt;p&gt;The beautiful error message, as shown by XDebug, complete with stack trace&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;XDebug error message&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/error-message.png?fit=931%2C249\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-439'>\n\t\t\t\tXDebug error message\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"72\" src=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?resize=150%2C72\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-440\" srcset=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?resize=150%2C72 150w, https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?zoom=2&amp;resize=150%2C72 300w, https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?zoom=3&amp;resize=150%2C72 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" data-attachment-id=\"440\" data-permalink=\"http:\/\/kellytehuna.com\/blog\/2010\/01\/04\/it-always-the-simplest-thing\/vanilla-error-message\/\" data-orig-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?fit=863%2C72\" data-orig-size=\"863,72\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"vanilla-error-message\" data-image-description=\"&lt;p&gt;The default error message PHP shows, sans XDebug&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Default PHP Error message&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/kellytehuna.com\/blog\/wp-content\/uploads\/2010\/01\/vanilla-error-message.png?fit=863%2C72\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-440'>\n\t\t\t\tDefault PHP Error message\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying for MONTHS to get the very excellent XDebug PHP extension, written and maintained the PHP Jedi Master,\u00a0Derick Rethans. XDebug offers some serious debugging capabilities to PHP that are second to none. It also offers some excellent profiling tools, which I should really make better use of in development. It&#8217;s easy to see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[80,68,81],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-software","tag-apache","tag-php","tag-xdebug"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2FJaA-73","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":2,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":442,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions\/442"}],"wp:attachment":[{"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kellytehuna.com\/blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}