질문Q #22300
Xdebug command Line 디버깅
한대승(불의회상)2020-04-07 20:31:19

Xdebug를 사용할 때 웹이 아닌 command line으로 해야 할 경우 아래와 같이 하면 됩니다.

php -d xdebug.remote_enable=1 -d xdebug.remote_autostart=On -d xdebug.idekey={XDEBUG-세션이름} -d xdebug.remote_host={디버깅할 도메인명} {디버그할PHP파일.php}

{XDEBUG-세션이름} : 일반적으로 XDEBUG_ECLIPSE, netbeans-xdebug, PHPSTORM

{디버깅할 도메인명} : localhost, test.devs 등 아파치나 nginx에 설정한 virtual domain명

{디버그할PHP파일.php} : 디버깅이 필요한 php 파일명

 

오늘도 즐거운 코딩하세요.

답변1
#1 변종원(웅파) 2020-04-21 14:01:28
Good~~