Apperv2.5.10
PHP5.2
Zend Studio 8.0
(按bug icon in menu右邊的三角形icon) -> 「Debug Configurations」

「PHP Script」->「New launch configuration(左上角的icon)」

Name:「PHPUnitMyDebugger」
Execution environment:「php5」
PHP File:「/path/to/PHPUnit/phpunit.php」

Click Apply!
In Tab PHP Script Arguments
Script Arguments:「${resource_loc}」

In Tab Common(As below)

Click Apply! You have complete first part setting~~
Next part is setting you php.ini
Add below config to bottom of php.ini
[Zend]
zend_extension="C:\Program Files (x86)\Zend\Zend Studio - 8.0.0\plugins\org.zend.php.debug.debugger.win32.x86_5.3.18.v20100905\resources\php53\ZendDebugger.dll"
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
zend_debugger.connector_port = 10013
save php.ini and restart Apache.
我設成功時,是有連同PHPUnit也一起設定好。所以如果您做了以上的設定後,還是無法成功跟ZendDebugger時,
你也設一下PHPUnit吧

在Program上「New launch configuration」
Name:「PHPUnit」
Location:「/path/to/phpunit/phpunit_ori.bat」
Working Directory:「${workspace_loc}」
Arguments:「${workspace_loc}」

In common tab

click Apply. OK~ That is all my setting process~
沒有留言:
張貼留言