Xdebug file_link (not working yet)

  • sudo vi /etc/php5/conf.d/xdebug.ini
    • xdebug.file_link_format = xdebug://%f@%l
      
  • Enable xdebug_file_link_format
  • http://xdebug.org/docs/all_settings#file_link_format
    • In Firefox URL bar enter "about.config"
    • Right click anywhere and select "new -> boolean"
    • Name the new variable "network.protocol-handler.expose.xdebug" and set it to true
    • vi ~/bin/ff-xdebug.sh
      • #! /bin/sh
        
        f=`echo $1 | cut -d @ -f 1 | sed 's/xdebug:\/\///'`
        l=`echo $1 | cut -d @ -f 2`
        
        
        ~/bin/eclipse/eclipse --launcher.openFile $f 
        
        
    • chmod +x ~/bin/ff-xdebug.shx