{"id":260,"date":"2016-07-30T15:22:28","date_gmt":"2016-07-30T19:22:28","guid":{"rendered":"https:\/\/2016.tampa.wordcamp.org\/?post_type=wcb_session&#038;p=260"},"modified":"2016-08-25T18:26:07","modified_gmt":"2016-08-25T22:26:07","slug":"debugging-in-php","status":"publish","type":"wcb_session","link":"https:\/\/tampa.wordcamp.org\/2016\/session\/debugging-in-php\/","title":{"rendered":"Debugging in PHP"},"content":{"rendered":"<p>The art of debugging code requires a good understanding of the codebase and logical deduction skills. A good debugging tool is like a code mentor that can walk you through the code and help you better understand what is going on, but the deductive reasoning is still up to you. In this session, you will learn how to use Xdebug, a PHP debugging tool to:<br \/>\n\u2013 Step through the code line-by-line<br \/>\n\u2013 Set breakpoints to pause the code at any point<br \/>\n\u2013 View the variables that are in scope when the code is paused<br \/>\n\u2013 Watch variables and functions as you step through the code<br \/>\n\u2013 Change variable values as the code runs<br \/>\n\u2013 Investigate the call stack to see the files loaded and functions run<br \/>\n\u2013 Surface hidden issues in your code<br \/>\nAs a bonus, you will learn a few tips for helping you track down your next bug with better deductive reasoning as well!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The art of debugging code requires a good understanding of the codebase and logical deduction skills. A good debugging tool is like a code mentor that can walk you through the code and help you better understand what is going on, but the deductive reasoning is still up to you. In this session, you will &hellip; <a href=\"https:\/\/tampa.wordcamp.org\/2016\/session\/debugging-in-php\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Debugging in PHP<\/span><\/a><\/p>\n","protected":false},"author":5970186,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1473616800,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[259],"footnotes":""},"session_track":[5041,518384],"session_category":[],"class_list":["post-260","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-developer","wcb_track-developer-workshop"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p740XK-4c","session_date_time":{"date":"September 11, 2016","time":"2:00 pm"},"session_speakers":[{"id":"259","slug":"micah-wood","name":"Micah Wood","link":"https:\/\/tampa.wordcamp.org\/2016\/speaker\/micah-wood\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/260\/revisions"}],"predecessor-version":[{"id":942,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/260\/revisions\/942"}],"speakers":[{"embeddable":true,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/259"}],"author":[{"embeddable":true,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wporg\/v1\/users\/woodent"}],"wp:attachment":[{"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=260"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/tampa.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}