using xdebug on hosted server.

Discussion in 'Programming/Scripts' started by wyattbiker, Apr 7, 2011.

  1. wyattbiker

    wyattbiker New Member

    I need to debug php code on a non-dedicated hosted server and donot have access to php.ini. Is there an ini file similar to .htaccess for php that can be configured?

    Any other suggestion how to debug on a non-dedicated remote hosted server?
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. wyattbiker

    wyattbiker New Member

    Will it work for values like below that are outside of php normal directives. So if I am on a shared hosted server, can I use php_value to se these things?

    E.g.
    Code:
    php_value zend_extension "/mylocaldir/no-debug-non-zts-20060613/xdebug.so"
    php_value xdebug.remote_enable 1
    ....
    
    Here is my xdebug configuration I currently have on my dedicated server.
    Code:
    [Zend]
    
    zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
    
    [xdebug]
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9999
    xdebug.idekey=xxxx
    xdebug.profiler_enable=0
    xdebug.profiler_output_name=xdebug.cachegrind-out.%s.%p
    xdebug.var_display_max_depth=10
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You can try it and check the result with
    PHP:
    phpinfo();
     

Share This Page