PHP デãƒãƒƒã‚°æ–¹æ³•(XAMPP/Eclipse/Xdebug)

Xdebugモジュール

ダウンロード

phpinfo()を出力

↓
https://xdebug.org/wizard.php
ã®ãƒ†ã‚­ã‚¹ãƒˆã‚¨ãƒªã‚¢ã«php_info()ã®å‡ºåŠ›çµæžœã‚’貼り付ã‘

↓
「Analyse my phpinfo() outputã€ãƒœã‚¿ãƒ³æŠ¼ä¸‹

↓
分æžã•れãŸãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã‚’ダウンロード
例:php_xdebug-2.6.1-7.2-vc15.dll

ä¿å­˜

C:\xampp\php\ext\
ã«ä¿å­˜

XAMPP

読ã¿è¾¼ã¿

C:\xampp\php\php.ini
ã«ä»¥ä¸‹ã‚’追加

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"

Eclipse

デãƒãƒƒã‚°ã®æ§‹æˆ

サーãƒãƒ¼ã‚¿ãƒ–

「PHP Webアプリケーションã€ã‚’ダブルクリック
åå‰ã‚’ä¿å­˜å¯èƒ½

ファイル:デãƒãƒƒã‚°å¯¾è±¡ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é¸æŠž
URL:CakePHPã®å ´åˆã€URLãŒå®Ÿãƒ•ァイルã¨å¤‰æ›´ã•れるã®ã§ãƒ–ラウザã«è¡¨ç¤ºã•れるURLを入力

サーãƒãƒ¼ï¼šæ§‹æˆ
ベースURL:ãƒãƒ¼ãƒˆç•ªå·ç­‰å¤‰æ›´ãŒã‚ã‚‹å ´åˆ

デãƒãƒƒã‚¬ãƒ¼ã‚¿ãƒ–


デãƒãƒƒã‚«ãƒ¼ï¼šXDebugã‚’é¸æŠž

Follow me!