使用Eclipse调试PHP应用

(1) Install WAMPServer:

使用Eclipse调试PHP应用

Change Apache server default port 80 to another port:

使用Eclipse调试PHP应用

configuration: \bin\apache\apache2.4.9\conf\httpd.conf

使用Eclipse调试PHP应用

(2) In Eclipse, specify PHP Executable:

使用Eclipse调试PHP应用

debug setting:

使用Eclipse调试PHP应用

Create a new debug configuration:

使用Eclipse调试PHP应用
使用Eclipse调试PHP应用
使用Eclipse调试PHP应用
使用Eclipse调试PHP应用

(3) Then launch the application via url: http://localhost:8098/jerry/newfile.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=14572383566191
Then debugger is launched automatically:

使用Eclipse调试PHP应用

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
使用Eclipse调试PHP应用