간단간단!!!!
1. phpinfo(); 로 정보수집 후 html 소스를 클립보드에 복사
3. 나온 결과에 걸려있는 링크파일을 다운 받아서 php설치폴더/ext 에 복사
4. php.ini를 열어서 분석결과 밑에 있는 Instruction 의 3번에 나온 경로(zend_extension = )를 포함하여 다음과 같이 정보를 추가
[XDebug]
zend_extension = "D:\Bitnami\wampstack-5.6.30-5\php\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\Bitnami\wampstack-5.6.30-5\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.trace_output_dir = "D:\Bitnami\wampstack-5.6.30-5\tmp"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_connect_back=1
xdebug.remote_mode=req
|
5. 저장 후 아파치 서버 재시작
6. pnpinfo(); 페이지를 열어서 xdebug 항목이 생성되었는지 확인
* Brackets 에서 확장기능으로 디버거를 설치 한 경우 php.ini 의 [XDebug] 설정에 다음을 추가
xdebug.idekey="idekey
"
<출처 및 참고>
댓글
댓글 쓰기