Top Banner
WEB TEKLOLOJİLERİ GÜNÜ WEB TEKLOLOJİLERİ GÜNÜ Eclipse PDT Eclipse PDT
20

Eclipse PDT

Oct 21, 2014

Download

Technology

Ceviz.Net ile CETURK işbirliğiyle Boğaziçi Üniversitesi İbrahim Bodur Oditoryumu'nda 09 Mayıs 2009 tarihinde düzenlenen Web Teknolojileri Günü'nde sunduğumuz Eclipse PDT (PHP Development Tools) semineri sunumu.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Eclipse PDT

WEB TEKLOLOJİLERİ GÜNÜWEB TEKLOLOJİLERİ GÜNÜEclipse PDTEclipse PDT

Page 2: Eclipse PDT

Eclipse PDT Eclipse PDT Nedir ?Nedir ?

Page 3: Eclipse PDT

Eclipse PDT NedirEclipse PDT Nedir

Eclipse PDT Eclipse PDT PHP Development Tools’un kısaltması,PHP Development Tools’un kısaltması,

Proje 2006 Mart ayında Zend ile IBM arasındaki anlaşmayla Proje 2006 Mart ayında Zend ile IBM arasındaki anlaşmayla başladı,başladı,Eylül 2007’de ilk versiyon duyuruldu,Eylül 2007’de ilk versiyon duyuruldu,

Page 4: Eclipse PDT

Eclipse PDT NedirEclipse PDT Nedir

Kod yardımcısıKod yardımcısı•Eclipse Platformunda PHP IDE,Eclipse Platformunda PHP IDE,•Full Functionality,Full Functionality,•Kod tamamlama,Kod tamamlama,•Renklendirme,Renklendirme,•Formatlama,Formatlama,•php.net ile dökümantasyon,php.net ile dökümantasyon,•AnnotationsAnnotations

Debugging,Debugging,•Lokal debuggingLokal debugging•Remote debuggingRemote debugging

Page 5: Eclipse PDT

Eclipse PDT NedirEclipse PDT Nedir

Şimdiki stabil sürüm 2.0 Şimdiki stabil sürüm 2.0 Ancak Eclipse Galileo üzerinde 2.1 versiyonu da mevcut,Ancak Eclipse Galileo üzerinde 2.1 versiyonu da mevcut,Proje adresi : Proje adresi : http://www.eclipse.org/pdthttp://www.eclipse.org/pdt

Kurulum için installer bulunmuyor. Kurulum için installer bulunmuyor. İndirilen zip açıldığında eclipse adındaki dizindeki İndirilen zip açıldığında eclipse adındaki dizindeki eclipse.exe çalıştırılabilir.eclipse.exe çalıştırılabilir.

Debug içinDebug içinZend debugger ve Xdebug seçenekleri var,Zend debugger ve Xdebug seçenekleri var,

Page 6: Eclipse PDT

Eclipse PDT NedirEclipse PDT Nedir

Perspective’lerPerspective’lerPHP PHP PHP DebuggingPHP Debugging

View’lar:View’lar:PHP ExplorerPHP ExplorerPHP FunctionsPHP FunctionsPHP Project OutlinePHP Project Outline

Debug OutputDebug OutputParameter StackParameter StackBrowser OutputBrowser Output

Page 7: Eclipse PDT

Eclipse PDT Eclipse PDT DebuggingDebugging

Page 8: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT Debugging

Eclipse PDT içinde Zend debug ve Xdebug olarak iki seçenek Eclipse PDT içinde Zend debug ve Xdebug olarak iki seçenek bulunuyor.bulunuyor.

Xdebug özgür yazılım ürünü. Derick Rethans tarafından Xdebug özgür yazılım ürünü. Derick Rethans tarafından geliştirilmiştir.geliştirilmiştir.

Page 9: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT Debugging

Eclipse PDT’de varsayılan debugger Zend Eclipse PDT’de varsayılan debugger Zend

Window -> Preferences -> PHP -> Debug yolundan giderek Window -> Preferences -> PHP -> Debug yolundan giderek Xdebug olarak set etmek gerekiyor.Xdebug olarak set etmek gerekiyor.

Page 10: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT Debugging

Page 11: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingKurulumKurulum

Xdebug için sunulan dll Xdebug için sunulan dll www.xdebug.org adresinden indirilir. adresinden indirilir.php.ini içerisinde aşağıdaki tanımlamalar yapılır:php.ini içerisinde aşağıdaki tanımlamalar yapılır:

xdebug.remote_enable=Onxdebug.remote_enable=Onxdebug.remote_host="localhost"xdebug.remote_host="localhost"xdebug.remote_port=9000xdebug.remote_port=9000xdebug.remote_handler="dbgp"xdebug.remote_handler="dbgp"zend_extension_ts="D:/setuplar/php-5.2.8/ext/php_xdebug-2.0.4-5.2.8.dll"zend_extension_ts="D:/setuplar/php-5.2.8/ext/php_xdebug-2.0.4-5.2.8.dll"

Page 12: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingKurulumKurulum

Page 13: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingGlobal AyarlarGlobal Ayarlar

Buradaki 9000 nolu port değştirilebilir.Buradaki 9000 nolu port değştirilebilir.Eclipse Window -> Preferences-> PHP -> Debug -> Installed Eclipse Window -> Preferences-> PHP -> Debug -> Installed Debugger yolundan giderek port ayarlanabilir.Debugger yolundan giderek port ayarlanabilir.

Page 14: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingGlobal AyarlarGlobal Ayarlar

Page 15: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingProje AyarlarıProje Ayarları

PHP Explorer ile yeni bir PHP Projesi oluşturduktan ve php PHP Explorer ile yeni bir PHP Projesi oluşturduktan ve php dosyası ekledikten sonra dosya üzerinde sağ tuş ile dosyası ekledikten sonra dosya üzerinde sağ tuş ile Debug As.. -> Debug Configurations -> PHP Web Page -> New Debug As.. -> Debug Configurations -> PHP Web Page -> New launch configuration ile gelen ekrandan ayarlar yapılır.launch configuration ile gelen ekrandan ayarlar yapılır.

Page 16: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingProje AyarlarıProje Ayarları

Page 17: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingProje AyarlarıProje Ayarları

Page 18: Eclipse PDT

Eclipse PDT DebuggingEclipse PDT DebuggingProje AyarlarıProje Ayarları

Page 19: Eclipse PDT

DemoDemo

Page 20: Eclipse PDT

TeşekkürlerTeşekkürler