본문 바로가기
개발일기

[Xdebug/php/phpstorm] XDBUG 설치 및 환경 설정

by 프로그래머콩 2024. 4. 25.

 

계기

php로 개발을 할 때 더이상 print, var_dunp로 디버그를 하고싶지 않음

 

목차

1. 준비물

2. 관련 링크

3. 과정

 

 

1. 준비물

- phpstorm
- php.ini
- chrome 

 

 

2. 관련 링크

 

3. 과정

(1) xdebug 설치후 경로 복사

 

(2) php.ini에 xdebug 환경 추가

아까 복사했던 경로 zend_extension에 입력

 

(3) phpstorm 의 [ preferences ] - [ PHP ] - [ Debug ]  접속해서 설정

3번 클릭

 

(4) xdebug 확장 프로그램 설치

 

(5) 확장프로그램 활성화

 

 

(6) 예시 참고

- https://www.jetbrains.com/help/phpstorm/2023.3/zero-configuration-debugging.html?php.debugging.zero_configuration#set_breakpoints