2013年2月3日

eclipse PDT Xdebug

Ecilpse DownLoad

http://www.zend.com/en/community/pdt/downloads
ProductVersionFormat/SizeNotes
Zend Eclipse PDTPDT 3.0.2 w/Eclipse Indigo(ZIP) 92.61 MBN/A
Studio Web Debugger20110410(ZIP) 2.16 MBInstallation Guide







php.ini編集




before



[XDebug]
;zend_extension = "\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
;xdebug.remote_enable = 0
;xdebug.remote_handler = "dbgp"
;xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"



after



[XDebug]
zend_extension = "\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
;xdebug.remote_handler = "dbgp"
;xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"

phpinforにて動作確認




Eclipse Xdebug

ワークスペースにはxampp/htdocsを選択します。
シンボルを読み込むからか?でもインタプリタ型はどうなってんだろ。
結局は、ソースと実行しているメモリ空間をマッピングさせる必要があるから、
中間コード的なものがあるんだと想定している。



デバッグ

newfile プロジェクト作成し、
ファイルはnewfile.phpで中身は以下のとおりです。
print ("hello world"); ?>

メニュー->RUN->DebugConfiguration

「Server」タブのみ設定します。 Server Debugger:XDebug PHPServer:Default PHP Web Server File:デバッグするソースファイル名 ここでは/newfile/newfile.php Breakpoint:お好み Auto Generate:ON




   xdebug
   
   でけたww

参考は
 ありがとうございます









0 件のコメント: