{"rsdb":{"rid":"396686","subhead":"","postdate":"0","aid":"273230","fid":"85","uid":"1","topic":"1","content":"
\n

\u4e00\u3001\u5b89\u88c5xdebug<\/p> \n

\u4e0b\u8f7dXdebug\uff0c\u8981\u4e0b\u8f7d\u4e0ePHP\u5bf9\u5e94\u7248\u672c\u7684Xdebug<\/p> \n

xdebug\u5b98\u7f51\u4e0b\u8f7d\u5730\u5740\uff1aXdebug: Downloads<\/a> \u8fd9\u91cc\u4e0b\u8f7d\u7684\u5982\u679c\u6ca1\u6709\u8ddf\u4f60\u7684php\u5bf9\u5e94\uff0c\u90a3\u4e48\u7b49\u5f85\u4f60\u7684\u5c31\u662f\u4e00\u5806\u62a5\u9519<\/p> \n

\u7f51\u7ad9\u63d0\u4f9b\u4e86\u4e00\u4e2a\u81ea\u52a8\u5206\u6790\u7cfb\u7edf\u5bf9\u5e94\u7684xdebug\u7248\u672c \uff0c\u7f51\u5740\u662f\uff1a<\/p> \n

Xdebug: Support \u2014 Tailored Installation Instructions<\/a>
\u5728\u9875\u9762\u4e2d\u9700\u8981\u7c98\u8d34\u8fdb\u53bbphp\u7248\u672c\u4fe1\u606f\uff0c\u4e5f\u5c31\u662fphpinfo()\u7684\u4fe1\u606f<\/p> \n

\n
<?php\n <\/span>phpinfo<\/span>();\n<\/span>?><\/pre> \n <\/div> \n 

\"\"<\/p> \n

  ctrl+A\u5168\u9009\u8fd9\u4e2a\u9875\u9762\u7684\u4fe1\u606f\uff0c\u7136\u540e\u7c98\u8d34\u5230Xdebug: Support \u2014 Tailored Installation Instructions<\/a> \u91cc<\/p> \n

\"\"<\/p> \n

\u70b9\u51fb\u8fd9\u4e2a\u6309\u94ae\uff1a<\/p> \n

\"\"<\/p> \n

 \u5c31\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u4f60\u7248\u672c\u7684xdebug\u4e0b\u8f7d<\/p> \n

 <\/p> \n

\"\"<\/p> \n

 \u6309\u7167\u4e0a\u9762\u63d0\u793a\u7684\u6b65\u9aa4\uff0c\u628a\u6587\u4ef6\u653e\u5728php\\ext\u76ee\u5f55\u91cc\u9762\u3002<\/p> \n

 <\/p> \n

\u4e8c\u3001\u8bbe\u7f6ephp.ini<\/p> \n

\u6253\u5f00php.ini\u6587\u4ef6\uff0c\u628axdebug\u7684\u914d\u7f6e\u52a0\u8fdb\u53bb<\/p> \n

\u770b\u5b89\u88c5\u7684xdebug\u7248\u672c\u662f\u591a\u5c11\uff0c2\u548c3\u6709\u4e9b\u4e0d\u4e00\u6837<\/p> \n

XDEBUG 3<\/p> \n

\n
[Xdebug]\nzend_extension<\/span>=D:\/php\u76ee\u5f55\/php7.3.4nts\/ext\/php_xdebug.dll\nxdebug<\/span>.idekey="PHPSTORM"  #<\/span> \u975e\u5e38\u91cd\u8981\uff0c\u52a1\u5fc5\u8bb0\u4f4f<\/span>\n;\u914d\u7f6e\u7aef\u53e3\u548c\u76d1\u542c\u7684\u57df\u540d\nxdebug<\/span>.mode=debug\nxdebug<\/span>.discover_client_host=true<\/span>\nxdebug<\/span>.remote_cookie_expire_time = 3600\nxdebug<\/span>.client_port=9010\nxdebug<\/span>.client_host="localhost"\nxdebug<\/span>.start_with_request=yes\nxdebug<\/span>.remote_handler = "dbgp"<\/pre> \n <\/div> \n 

XDEBUG 2<\/p> \n

\n
;; debug2\u7684
[Xdebug]
zend_extension=D:\/php\u76ee\u5f55\/php7.3.4nts\/ext\/php_xdebug.dll\nxdebug<\/span>.trace_output_dir=D:\/phpTool\/phpstudy_pro\/Extensions\/php_log\/php7.3.4nts.xdebug.trace\nxdebug<\/span>.profiler_output_dir=D:\/phpTool\/phpstudy_pro\/Extensions\/php_log\/php7.3.4nts.xdebug.profiler\nxdebug<\/span>.profiler_append = 0\nxdebug<\/span>.profiler_enable=On\nxdebug<\/span>.profiler_enable_trigger = 0\n;\u5f00\u542f\u8fdc\u7a0b\u8c03\u8bd5\nxdebug<\/span>.remote_enable=On\n;\u5ba2\u6237\u673axdebug\u8c03\u8bd5\u534f\u8bae\nxdebug<\/span>.remote_handler="dbgp"\nxdebug<\/span>.remote_mode = "req"\nxdebug<\/span>.remote_host=127.0.0.1\n;xdebug<\/span>.remote_port\u4fee\u6539\u9ed8\u8ba4\u503c9000\u4e3a9010\uff08\u56e0\u4e3aPHP-FPM\u9ed8\u8ba4\u76d1\u542c9000\u7aef\u53e3\uff0c\u603b\u662f\u88ab\u5360\u7528\uff09\uff0c\u8fd9\u91cc\u9700\u8981\u8ddfphpstorm\u914d\u7f6e\u4e00\u81f4\nxdebug<\/span>.remote_port=9010\n;idekey \u533a\u5206\u5927\u5c0f\u5199\nxdebug<\/span>.idekey="PHPSTORM"\nxdebug<\/span>.collect_params=1\nxdebug<\/span>.collect_return=1\nxdebug<\/span>.auto_trace=On<\/pre> \n <\/div> \n

 <\/p> \n

\u4e8c\u3001\u8bbe\u7f6ephpstorm<\/p> \n

 \u6253\u5f00\u8bbe\u7f6e\uff0cFile->Settings->PHP->Debug\uff0c\u586b\u5199php.ini\u4e2d\u8bbe\u7f6e\u7684\u7aef\u53e3\u53f7<\/p> \n

\"\"<\/p> \n

 File->Settings->PHP->Debug->DBGp Proxy\uff0c\u586b\u5199php.ini\u4e2d\u8bbe\u7f6e\u7684\u5185\u5bb9<\/p> \n

\"\"<\/p> \n

\u8bbe\u7f6eServers\uff0c<\/p> \n

Name\u8d77\u4e00\u4e2a\u540d\u5b57\uff0cHost\u586b\u5199\u672c\u5730host\u91cc\u914d\u7f6e\u7684\u5730\u5740 <\/p> \n

\"\"<\/p> \n

 <\/p> \n

\u56db\u3001\u8bbe\u7f6eRun\/Debug Configurations<\/p> \n

\u7f16\u8f91\u5668\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9Edit Configurations...<\/p> \n

\"\"<\/p> \n

 \u6dfb\u52a0\u4e00\u4e2a\u914d\u7f6e\uff0c<\/p> \n

\u70b9\u51fb\u52a0\u53f7\uff0c<\/p> \n

\"\"<\/p> \n

 <\/p> \n

Name\u8d77\u4e00\u4e2a\u540d\u5b57\uff0cServer\u9009\u62e9\u521a\u521a\u521b\u5efa\u7684Servers<\/p> \n

\"\"<\/p> \n

 <\/p> \n

Run\u52fe\u9009\u4e0aBreak at first line in PHP scripts<\/p> \n

\"\"<\/p> \n

 <\/p> \n

\u914d\u7f6e\u5b8c\u6210\u3002<\/p> \n

 <\/p> \n

\u4e94\u3001\u6d4b\u8bd5<\/p> \n

\u5f53\u7528phpstorm\u8fdb\u884cdebug\u8c03\u8bd5\u7684\u65f6\u5019,\u8bb0\u5f97\u5f00\u542f\u76d1\u542c\u6a21\u5f0f<\/p> \n

\u5f00\u542f<\/p> \n

\"\"<\/p> \n

 <\/p> \n

\u5173\u95ed<\/p> \n

\"\"<\/p> \n

 <\/p> \n

\u5728\u7f16\u8f91\u5668\u91cc\u6253\u4e0a\u65ad\u70b9\uff0c\u8bf7\u6c42\u4e00\u4e0b\u63a5\u53e3<\/p> \n

\"\"<\/p> \n

 <\/p> \n<\/div>","orderid":"0","title":"phpstorm 2023 \u914d\u7f6e xdebug","smalltitle":"","mid":"0","fname":"PHP","special_id":"0","bak_id":"0","info":"0","hits":"274","pages":"1","comments":"0","posttime":"2023-09-09 10:25:35","list":"1694226335","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"phpstorm<\/A> 2023<\/A> \u914d\u7f6e<\/A> xdebug<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"101.232.55.135","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"phpstorm 2023 \u914d\u7f6e xdebug","lastview":"1716081953","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}