{"id":36,"date":"2023-07-08T16:35:05","date_gmt":"2023-07-08T08:35:05","guid":{"rendered":"http:\/\/123.207.72.74\/?p=36"},"modified":"2023-07-08T16:35:05","modified_gmt":"2023-07-08T08:35:05","slug":"php-xdebug","status":"publish","type":"post","link":"https:\/\/blog.iwonder.cc\/index.php\/2023\/07\/08\/php-xdebug\/","title":{"rendered":"PHP Xdebug"},"content":{"rendered":"<h2>\u5b89\u88c5&amp;\u542f\u7528 Xdebug<\/h2>\n<ol>\n<li>\u6267\u884c <code>php -i<\/code>\uff0c\u83b7\u53d6\u5b89\u88c5\u7684 php \u4fe1\u606f<\/li>\n<li>\u5c06\u7b2c\u4e00\u6b65\u7684\u7ed3\u679c\u8d34\u5165 xdebug \u5b89\u88c5\u5411\u5bfc\uff08<a href=\"https:\/\/xdebug.org\/wizard.php\" target=\"_blank\" rel=\"noopener\">Xdebug: Support \u2014 Tailored Installation Instructions<\/a>\uff09\u4e2d\uff0c\u70b9\u51fb\u5206\u6790\uff1b<\/li>\n<li>\u6839\u636e\u5206\u6790\u751f\u6210\u7684\u6307\u793a\uff0c\u6309\u6b65\u9aa4\u5b89\u88c5 Xdebug<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u914d\u7f6e\u542f\u7528 xdebug\uff0c\u5728 <code>99-xdebug.ini<\/code> \u4e2d\u6dfb\u52a0\n<pre><code class=\"language-properties\">xdebug.mode=debug\nxdebug.start_with_request=yes\nxdebug.client_host=127.0.0.1\nxdebug.client_port=9003\nxdebug.idekey=PHPSTORM<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>\u6d4f\u89c8\u5668\u5b89\u88c5 Xdebug \u63d2\u4ef6<\/h2>\n<p><a href=\"https:\/\/www.jetbrains.com\/help\/phpstorm\/2023.1\/browser-debugging-extensions.html?utm_source=product&amp;utm_medium=link&amp;utm_campaign=PS&amp;utm_content=2023.1\" target=\"_blank\" rel=\"noopener\">Browser debugging extensions | PhpStorm Documentation<\/a><\/p>\n<h2>\u5f00\u59cb\u8c03\u8bd5<\/h2>\n<p>\u6d4f\u89c8\u5668\u63d2\u4ef6\u5f00\u542f <code>Debug<\/code>\uff0cPHPStorm \u5f00\u542f\u76d1\u542c\u5373\u53ef<\/p>\n<h2>\u591a\u7248\u672c PHP \u90fd\u9700\u8981\u5355\u72ec\u7f16\u8bd1\u5b89\u88c5<\/h2>\n<p>\u4f8b\u5982\uff0c\u9ed8\u8ba4 php \u7248\u672c\u4e3a\u6700\u65b0 8.2.x\uff0c\u9700\u8981\u4e3a 7.4 \u7248\u672c\u5b89\u88c5 xdebug\u3002<\/p>\n<p>\u5927\u4f53\u6b65\u9aa4\u4e00\u76f4\uff0c\u6709\u4ee5\u4e0b 2 \u4e2a\u5730\u65b9\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<ol>\n<li>\n<p>\u83b7\u53d6 phpinfo\uff0c\u53ef\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u6267\u884c php -i<br \/>\n<code>\/opt\/homebrew\/Cellar\/php@7.4\/7.4.33_3\/bin\/php -i<\/code><\/p>\n<\/li>\n<li>\n<p>\u6267\u884c <code>.\/configure<\/code> \u65f6\u8981\u6307\u5b9a php-config<br \/>\n<code>.\/configure --with-php-config=\/opt\/homebrew\/Cellar\/php@7.4\/7.4.33_3\/bin\/php-config<\/code><\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5&amp;\u542f\u7528 Xdebug \u6267\u884c php -i\uff0c\u83b7\u53d6\u5b89\u88c5\u7684 php \u4fe1\u606f \u5c06\u7b2c\u4e00\u6b65\u7684\u7ed3\u679c\u8d34\u5165 xdebu [&hellip;]<\/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":[12],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-be","tag-php"],"_links":{"self":[{"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iwonder.cc\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}