2) XAMPP 설치
3) 이클립스 설치
> select a workspace : C:\xampp\htdocs
4) XAMPP 설정
1. php.ini 수정
> C:\xampp\php
주석해제
---------------------------------------------------
;zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
---------------------------------------------------
;xdebug.show_local_vars = 0
xdebug.show_local_vars = 1 로 변경
---------------------------------------------------
2. xampp 재시동
3. http://localhost 접속
> 좌측메뉴 'phpinfo()' 클릭 후, 아래의 메시지가 출력되면 성공.
------------------------------------------------------------------------
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.0.6-dev, Copyright (c) 2002-2009, by Derick Rethans
------------------------------------------------------------------------
5) 이클립스 설정
> 파일 'httpd=eclipse.conf' 를 C:\xampp\apache\conf\extra 에 붙여넣기
> C:\xampp\apache\conf\httpd.conf 수정
--------------------------------------------------
include "conf/extra/httpd-eclipse.conf"
--------------------------------------------------
> windows > preferences > PHP > Debug
> PHP Debugger:XDebug, Server: Default PHP Web Server, PHP Executable -> add
> Name: PHP 5.3.0, Executable path: C:\xampp\php\php.exe, PHP ini file : C:\xampp\php\php.ini,
SAPI Type: CLI, PHP debugger: XDebug
> File > New > PHP Project > Project name: debug > Finish
> debug > 오른쪽 마우스 > New > PHP File > test.php
> test.php 작성
----------------------------------------------------
<?php
for($i=0; $i<10; $i++){
print($i+"<br/>");
}
?>
-----------------------------------------------------
> Run > Debug Configurations > PHP Web Page > test
> Server 탭 > Server Debugger: XDebug, PHP Server: Default PHP Web Server
> Apply > Close
> 토글 브레이크포인츠
> 해당프로젝트 > php 파일 > 오른쪽 마우스 > Debug As > PHP Script
6) 오라클 커넥트 설정
> C:\xampp\php\php.ini 수정
---------------------------
;extension=php_oci8.dll 주석풀기
;extension_dir = "./"
를
extension_dir = "C:/php5213/ext/" 로 변경
---------------------------
> 리스타트
댓글 없음:
댓글 쓰기