{"id":1290,"date":"2015-04-26T13:25:10","date_gmt":"2015-04-26T20:25:10","guid":{"rendered":"https:\/\/2015.oc.wordcamp.org\/?post_type=wcb_session&#038;p=1290"},"modified":"2015-04-29T17:58:57","modified_gmt":"2015-04-30T00:58:57","slug":"echo-is-for-chumps-lets-debug-for-real","status":"publish","type":"wcb_session","link":"https:\/\/oc.wordcamp.org\/2015\/session\/echo-is-for-chumps-lets-debug-for-real\/","title":{"rendered":"Let&#8217;s Debug for Real!"},"content":{"rendered":"<p>If you&#8217;ve written a line of code in any language, you&#8217;ve gotten into a state where you don&#8217;t necessarily know what the frig is going on. That thing &#8211; it&#8217;s right there in the template! Or right in that functions.php file, but nothing happens! Or the wrong thing happens! AAAAAAAARGH!<\/p>\n<p>Sure, you can try adding &#8220;echo&#8221;, &#8220;print_r&#8221;, &#8220;var_dumps&#8221; and the like all over the place, but it&#8217;s messy, and there is a better way. With a little bit of set up (but not much &#8211; seriously), you too can debug like a champ. If you&#8217;ve never seen a real debugger before, or if you&#8217;ve just dabbled with one, this talk could change your life substantially for the better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve written a line of code in any language, you&#8217;ve gotten into a state where you don&#8217;t necessarily know what the frig is going on. That thing &#8211; it&#8217;s right there in the template! Or right in that functions.php file, but nothing happens! Or the wrong thing happens! AAAAAAAARGH! Sure, you can try adding &hellip; <a href=\"https:\/\/oc.wordcamp.org\/2015\/session\/echo-is-for-chumps-lets-debug-for-real\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Let&#8217;s Debug for Real!<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13678780,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1433615400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1139],"footnotes":""},"session_track":[497498],"session_category":[],"class_list":["post-1290","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-trabuco-trail"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5oCTL-kO","session_date_time":{"date":"June 6, 2015","time":"11:30 am"},"session_speakers":[{"id":"1139","slug":"joe-chellman","name":"Joe Chellman","link":"https:\/\/oc.wordcamp.org\/2015\/speaker\/joe-chellman\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1290\/revisions"}],"predecessor-version":[{"id":1451,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/1290\/revisions\/1451"}],"speakers":[{"embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/speakers\/1139"}],"author":[{"embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wporg\/v1\/users\/shooflydesign"}],"wp:attachment":[{"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/media?parent=1290"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_track?post=1290"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/oc.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_category?post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}