# Debug Php Phpstorm with xdebug~~
### Download Xdebug dll & Php Config
- php 버전 확인
- phpinfo() ?> 확인요소

- Architecture : x86
- PHP Version : 5.2
- Thread Safe Build : yes
- Download "xdebug dll"
- php 버전에 맞는 dll 검색
- " _TS" 가 붙은 파일 == **T**hread **S**afe Build : yes
- x86 == 32bit
- DLL 복사
- "ext" in Php Floder . ( ex : php_xdebug-2.1.1-5.3-vc6.dll )

- php.ini
```ini
[XDebug]
; xdebug dll 위치 PHP Thread Safe가 아니면 "zend_extension = 파일위치"
zend_extension_ts=E:/WEB_APP/php/php532/ext/php_xdebug-2.1.1-5.3-vc6.dll
xdebug.remote_enable=true
xdebug.remote_host=local-dboard.com
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
;xdebug.profiler_output_dir="E:\WEB_APP\Profile"
```
- **주의사항**
- Thread Safe Build 가 Yes 이면 : zend_extension_ts
- Thread Safe Build 가 No 이면 : zend_extension
- Apache 재시작
- Ctrl + F8 : Toggle Break Point
- xdebug 설정 확인

- install "Xdebug Helper" plugin : [ [Download](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc) ]
- Alt + Shift + X : toggle Debug
- Add Break Point in Phpstorm IDE
- Ctrl + F8 : Toggle Break Point
- Ctrl + Shift + F8 : View breakpoints

- Open Chrome : http://localhost/service/index.php
- 처음 Break Point 걸고 디버깅이 걸리면 아래 "허가를 위한 팝업"이 호출됨.
- "Done"

- Debugging 
댓글