diff --git a/htdocs/admin/system/xdebug.php b/htdocs/admin/system/xdebug.php index 44bc0833a98..67040771992 100644 --- a/htdocs/admin/system/xdebug.php +++ b/htdocs/admin/system/xdebug.php @@ -66,7 +66,25 @@ if (function_exists('socket_create')) if ($client) { echo "Connection established: ".$client." - address=".$address." port=".$port."
\n"; - echo "There is a Remote debug server at this address.\n"; + echo "There is a Remote debug server at this address.
\n"; + echo "
\n"; + echo "To be sure this debugger accepts input from your PHP server, be sure to have\n"; + echo "your php.ini file with this :
\n"; + echo 'xdebug.remote_enable=on
+ xdebug.remote_handle=dbgp
+ xdebug.remote_host=localhost
+ xdebug.remote_port=9000
+ xdebug.profiler_enable=1
+ xdebug.show_local_vars=off
+ xdebug.profiler_output_dir=/tmp/xdebug
+ xdebug.profiler_append=0
+ '."\n"; + print "
\n"; + echo 'Then check in your debug server (Eclipse), you have setup:
+ XDebug with same port than in php.ini
+ Allow Remote debug=yes or prompt
'."\n"; + print "
\n"; + echo "Then, to run a debug session, add parameter XDEBUG_SESSION_START=aname on your URL. To stop, remove cookie XDEBUG_SESSION_START.\n"; } else {