{"id":231,"date":"2016-09-18T00:48:16","date_gmt":"2016-09-18T00:48:16","guid":{"rendered":"https:\/\/boulderinformationservices.wordpress.com\/?p=231"},"modified":"2016-09-18T00:48:16","modified_gmt":"2016-09-18T00:48:16","slug":"why-doesnt-xdebug-work-it-used-to","status":"publish","type":"post","link":"https:\/\/boulderinformationservices.com\/blog\/why-doesnt-xdebug-work-it-used-to\/","title":{"rendered":"Why Doesn&#8217;t XDebug Work? It Used To."},"content":{"rendered":"<p>I found myself asking (again) why XDebug wasn&#8217;t working, after installing a new IDE. I&#8217;d set a breakpoint, debug the page, but never see the code stop.<\/p>\n<p>I had trouble getting it to run the last time I tried a new IDE, but I didn&#8217;t remember exactly what the problem was. This blog post is to remind me how to quickly get XDebug up and running correctly in a new IDE.<\/p>\n<p>Short answer this time: XDebug is usually attached to port 9000. (You set this in your php.ini file.) If it isn&#8217;t, or if something else is attached to that port, you can move it, but you have to change both the php.ini file and your IDE&#8217;s configuration for where it expects to find XDebug.<\/p>\n<p>This <a href=\"http:\/\/stackoverflow.com\/questions\/23000889\/eclipse-taking-port-9000-even-though-debugging-stopped\">StackOverflow question<\/a> got me thinking in the right way.<\/p>\n<p>This <a href=\"https:\/\/netbeans.org\/project_downloads\/www\/php\/debug-setup-flowchart.pdf\">flowchart from Netbeans<\/a> also helped me. It pointed me to the <a href=\"https:\/\/xdebug.org\/wizard.php\">excellent tool<\/a> published by the XDebug folks.<\/p>\n<p>And now that I&#8217;ve made a note of how to get myself back up and running in the future, I&#8217;m going to make a small <a href=\"https:\/\/xdebug.org\/donate.php\">donation to XDebug<\/a> because I do indeed find it useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found myself asking (again) why XDebug wasn&#8217;t working, after installing a new IDE. I&#8217;d set a breakpoint, debug the page, but never see the code stop. I had trouble getting it to run the last time I tried a &hellip; <a href=\"https:\/\/boulderinformationservices.com\/blog\/why-doesnt-xdebug-work-it-used-to\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[24,33,36,38,46],"_links":{"self":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts\/231"}],"collection":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":0,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}