{"id":1202,"date":"2015-10-29T17:37:06","date_gmt":"2015-10-29T09:37:06","guid":{"rendered":"http:\/\/www.awaysoft.com\/taor\/?p=1202"},"modified":"2015-10-29T17:37:06","modified_gmt":"2015-10-29T09:37:06","slug":"phpstorm%e5%bc%80%e5%90%afxdebug%e8%bf%9c%e7%a8%8b%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/actom.me\/blog\/phpstorm%e5%bc%80%e5%90%afxdebug%e8%bf%9c%e7%a8%8b%e8%b0%83%e8%af%95.html","title":{"rendered":"PHPStorm\u5f00\u542fxdebug\u8fdc\u7a0b\u8c03\u8bd5"},"content":{"rendered":"<p>\u73af\u5883\uff1a<\/p>\n<p>\u670d\u52a1\u5668\u5728\u865a\u62df\u673a\u4e2d\uff0cip:192.168.62.130\uff0c\u4e3b\u673aip:192.168.62.1<\/p>\n<p>1\u3001\u5728\u865a\u62df\u673a\u4e2d\u5b89\u88c5xdebug\u6269\u5c55\uff0c\u6211\u4f7f\u7528\u7684\u662fcentos+remi\u6e90\uff0c\u6240\u4ee5\u76f4\u63a5\u7528yum install php-pecl-xdebug\u5b89\u88c5\u3002<\/p>\n<p>2\u3001\u4fee\u6539php.ini\uff0c\u6700\u540e\u9762\u6dfb\u52a0\uff1a<\/p>\n<pre class=\"lang:default decode:true\">xdebug.idekey=PHPSTORM\r\nxdebug.remote_host=192.168.62.1\r\nxdebug.remote_enable=1\r\nxdebug.remote_port=9000<\/pre>\n<p>\u6b64\u5904remote_host\u4e3aphpstorm\u6240\u5728\u7684ip\u3002<\/p>\n<p>\u91cd\u542fphp-fpm\u6216\u8005apache\u3002<\/p>\n<p>3\u3001\u5728phpstorm\u4e2d\uff0cSettings-&gt;Languages &amp; Frameworks-&gt;PHP-&gt;Debug\uff0c\u786e\u5b9aDebug port\u4e3a9000\uff0c\u4e0e\u4e0a\u9762\u4fdd\u6301\u4e00\u81f4<\/p>\n<p>4\u3001\u5728phpstorm\u4e2d\uff0cSettings-&gt;Languages &amp; Frameworks-&gt;PHP\uff0c\u53f3\u4fa7Interpreter\u4e2d\u6dfb\u52a0remote server\uff0c\u6b64\u5904\u6211\u662f\u4f7f\u7528ssh\u8fde\u63a5\uff08\u4f30\u8ba1\u8fd9\u4e00\u6b65\u53ef\u4ee5\u4e0d\u505a\uff0c\u56e0\u4e3a\u6211\u9700\u8981\u8c03\u8bd5\u547d\u4ee4\u884c\u7a0b\u5e8f\uff0c\u6240\u4ee5\u4e00\u5e76\u914d\u7f6e\u4e86\uff09<\/p>\n<p>5\u3001\u5728\u9700\u8981\u6d4b\u8bd5\u7684url\u540e\u9762\u52a0\u4e0a\uff1aXDEBUG_SESSION_START=\u968f\u673a\u6570<\/p>\n<p>\u53ef\u4ee5\u770b\u5230phpstorm\u5df2\u7ecf\u5f00\u59cb\u8ddf\u8e2a\u4e86\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u786e\u5b9a\u83dc\u5355\u680frun-&gt;Break at first line in PHP scripts\u52fe\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\uff1a \u670d\u52a1\u5668\u5728\u865a\u62df\u673a\u4e2d\uff0cip:192.168.62.130\uff0c\u4e3b\u673aip:192. &#8230; <a class=\"more-link\" href=\"https:\/\/actom.me\/blog\/phpstorm%e5%bc%80%e5%90%afxdebug%e8%bf%9c%e7%a8%8b%e8%b0%83%e8%af%95.html\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14],"tags":[],"_links":{"self":[{"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/posts\/1202"}],"collection":[{"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/comments?post=1202"}],"version-history":[{"count":1,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/posts\/1202\/revisions"}],"predecessor-version":[{"id":1203,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/posts\/1202\/revisions\/1203"}],"wp:attachment":[{"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/media?parent=1202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/categories?post=1202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actom.me\/blog\/wp-json\/wp\/v2\/tags?post=1202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}