Configuring server part:
copy php_dbg.dll (win32) or dbg.so (linux) into appropriate directory. Read PHP documentation on how to install PHP extension.
add extension=php_dbg.dll (win32) or extension=dbg.so (linux) entry into php.ini file.
enable debugger: find and edit (or add new) following entries in the php.ini file:
[debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 7869
note that clienthost is a keyword for DBG. If you use it, DBG will automatically detect IP of each client.
run <? phpinfo(); ?> script just to make sure dbg extension is working properly. You will see following message in the header:
with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko,
http://dd.cron.ruand appropriately formed dbg section.
Partager