PHP Debug : Xdebug Configuration On Mac
Xdebug Configuration On Mac
Ref.]
1. 생활코딩 > xdebug : https://opentutorials.org/course/692/3648
2. xdebug 설정 관련 : http://stackoverflow.com/questions/19579401/php-xdebug-on-os-x-10-9-mavericks
3. nano command 관련 : http://askubuntu.com/questions/54221/how-to-edit-files-in-a-terminal-with-nano
Ref.]
1. 생활코딩 > xdebug : https://opentutorials.org/course/692/3648
2. xdebug 설정 관련 : http://stackoverflow.com/questions/19579401/php-xdebug-on-os-x-10-9-mavericks
3. nano command 관련 : http://askubuntu.com/questions/54221/how-to-edit-files-in-a-terminal-with-nano
- 절차
- 터미널에서 아래와 같이 xdebug.so 파일이 존재하는지 체크
- 실행 command
find /usr/lib/php/extensions -name "xdebug.so"
- 실행 command
- 아래 경로의 php.ini파일에서 xdebug 내용 추가
- 실행 command
sudo nano /etc/php.ini
- 추가할 부분
[XDebug] zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000
- 실행 command
- apachectl restart
- 실행 command
sudo apachectl restart
- 실행 command
- 출력할 php에 아래와 같이 phpinfo()를 추가하고 페이지 확인
- source code
123<?phpphpinfo();?>
cs - view relate with xdebug

- source code
- 터미널에서 아래와 같이 xdebug.so 파일이 존재하는지 체크