Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active August 28, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/b5cd64e28602601b0e5b80ea2ad30ef4 to your computer and use it in GitHub Desktop.
Save phpdave/b5cd64e28602601b0e5b80ea2ad30ef4 to your computer and use it in GitHub Desktop.
Enabling xdebug on IBM i Zend Server 9 PHP7
;Turn off zend debugger in /usr/local/zendphp7/etc/conf.d/debugger.ini
;zend_extension_manager.dir.debugger=/usr/local/zendphp7/lib/debugger
;Turn off output_buffering in php.ini
;output_buffering=4096
output_buffering = Off
;Enable xdebug in the /usr/local/zendphp7/etc/conf.d/xdebug.ini file:
; Xdebug Configuration [xdebug]
zend_extension=/usr/local/zendphp7/lib/php_extensions/xdebug.so
xdebug.remote_enable=1
;remote_host limits connection to the 1 ip address specified.  To find your ip on windows run ipconfig /all
;xdebug.remote_host=<client's ip address>
xdebug.remote_port=9000
xdebug.idekey = "NETBEANS"
;Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION_START=NETBEANS
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
; remote_connect_back allows for multiple connections from different IPs.  This is great for situations in which multiple developers will be developing on the same instance.
xdebug.remote_connect_back = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment