here is a demo video:

 

the possibility to step (!) debug requests, as they appear on the server is a neat feature, xdebug + eclipse are a great team, when the setup is complete.

how to setup basic LAMP stack GNU Linux Debian – (Apache2 php7.3 MariaDB) (how to install xdebug – step debugging php requests in eclipse pdt on debian 10 buster (LAMP web development stack))

    • php -v; # is also a good way to test if xdebug is loaded when php is started
      vim /etc/php/8.1/apache2/php.ini; # no xdebug related settings are here
      vim /etc/php/8.1/cli/conf.d/20-xdebug.ini; # they are all here and read like:
      
      [XDebug]
      zend_extension=xdebug.so
      xdebug.mode=debug
      xdebug.start_with_request=trigger
      xdebug.start_with_request = 1
      xdebug.remote_autostart = on
      xdebug.log_level = 7
      xdebug.profiler_enable_trigger = 1
      xdebug.profiler_enable = 0
      xdebug.remote_enable = 1
      xdebug.profiler_output_dir = "/tmp"
      
      systemctl restart apache; # changes need to be made active by restarting webserver
      
      
  • when everything is installed go to eclipse -> window -> preferences
    • and also here:
  • if the developer r-click in the empty white space next to the code ->
  • sees this message…
      • releave… good god thanks they are talking to each other!

    Tux_FlickFlack

download the results:

  1. install https://www.virtualbox.org/ (available for GNU Linux, OSX, Windows)
  2. wget https://dwaves.de/downloads/devPHP_Debian_11_XDebug+Eclipse_php8.1_usr_root_pwd_root.tar.xz.sha512sum.txt
  3. (3.2Gbytes) wget https://dwaves.de/downloads/devPHP_Debian_11_XDebug+Eclipse_php8.1_usr_root_pwd_root.tar.xz
  4. sha512sum -c devPHP_Debian_11_XDebug+Eclipse_php8.1_usr_root_pwd_root.tar.xz.sha512sum.txt
    • checksum ok? -> continue otherwise: redownload
  5. unpack tar fcvJ devPHP_Debian_11_XDebug+Eclipse_php8.1_usr_root_pwd_root.tar.xz
  6. doule click the vbox file
  7. usr: user pwd: user, usr: root pwd: root (change both as soon as possible!)
  8. start the vm 🙂

by the way:

what is btw excellent done is this “Open Source project funding and progress status page”:

so every user can see, what is the progress “where is it hanging” of the software project, is it a lack of funding?

suggestion: what still missing a “still todo” todo list, where user’s can post suggestions and vote on features 🙂

from user to dev:

  • the positive:
    • php is easy to learn
    • php is usually “fast enough” (for web backends: it is slower than java but faster than python, but java needs A LOT more RAM)
  • the critique:
    • php related environments might be a wee bit complicated to setup
  • if the user wants to become a php dev check out bro’s excellent fun and easy php examples 🙂
    • just4info:
      • all those fancy php frameworks symphony sometime consisting of more than 10.000 files (thanks for making it open source but that’s a wee bit against unix kiss)
      • are just libraries that a dev wrote to use it, and while it HIGHLY might advance the user-soon-php-dev php-related-career they are NOT REQUIRED to get started, also:
        • if the user-soon-php-dev writes libraries + uses xdebug, the user-soon-php-dev is the only one who REALLY understands whats going on “under the hood” why things work or fail

keep it up and running:

 

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin