X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-Įdited 1 time(s). Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo Read The Manuals Apache - MySQL - PHP - phpMyAdmin (Windows 10 Pro 64bit) (Wampserver 3.3.1 32bit & 64bit) Aestan Tray Menu 3.2.5.0 I would say it might be a good idea to move to WAMPServer 3.0.8 as I am guessing you are using WAMPServer 2.5 maybe It would also be useful of you answered the Sticky Post READ (and answer) BEFORE YOU ASK A QUESTION So we can know what versions of everything you are using. So it lives in the PHP folder for a good reason Remember WAMPServer can have and does in a couplle of recent installs more than one versionof PHP and the dll for XDEBUG can be PHP version specific. Your version of PHP may be different so check the php7.0.4 part of the path. We can verify whether Xdebug is installed by checking the PHP info output as shown in Fig 1.Zend_extension ="C:/wamp/bin/php/php7.0.4/zend_ext/php_xdebug-2.4." Php | NOTICE: ready to handle connections => ADD xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini 0.1sĪttaching to mysql, mongo, php, pma, nginx, mexpress Now, run the build and up commands of Docker Compose. RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongodb.iniĪDD xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini RUN docker-php-ext-install pdo pdo_mysql mysqli RUN apt-get install -y autoconf pkg-config libssl-dev In this step, we will create the Xdebug configuration file and also update the PHP Dockerfile to install and configure Xdebug for PHP. To demonstrate using Xedug for PHP, I will use the same setup done in Containerize PHP with NGINX, MySQL, and MongoDB using Docker Containers. Stop - Terminate the current execution of the program and clear the variables stack and breakpoints from memory. The instruction pointer will point to the statement where the execution pause. The program execution will pause at the next breakpoint if there is any. Resume - Resume the execution as the program executes normally till the next breakpoint encounters. It skips the function and executes it without entering into it. Step Over - Execute the current statement without going into the function if it's there. Step Out or Step Return - Execute the remaining statements of the function completely and move out of the function and set the instruction pointer on the statement next to the function call. The execution will pause at the first statement of the function. We can step into the function called on the current statement to further check it. Step Into - Move to the next statement in case there is no function call or enter the function to debug it in case there is a function call on the current statement. The breakpoints are added intentionally to check the program for possible errors. Debug the project, all good and running OK 4. These are listed below.Ĭurrent Instruction Pointer - The instruction pointer pointing to the current statement where the debugger is paused and waiting for the next instructions.īreakpoint - The program execution pauses at the breakpoint until further instructions are not provided by the debugger. Run the project, you can see xdebug is properly installed and running 3. This section explains all the major terms specific to debugging. This tutorial assumes that you have opened your project in NetBeans and also configured it for the appropriate browser to launch the application. I am following Containerize PHP with NGINX, MySQL, and MongoDB using Docker Containers for this tutorial. You can also follow How To Install Docker Desktop On Windows 10, Containerize PHP with Apache, MySQL, and MongoDB using Docker Containers, Containerize PHP with NGINX, MySQL, and MongoDB using Docker Containers, and How To Install NetBeans 12 for PHP on Windows. It assumes that Docker and NetBeans are already installed on the Windows system. In this tutorial, we will discuss the terms specific to debugging and the steps required to debug PHP programs using Xdebug 3 and NetBeans for PHP applications containerized using Docker containers on Windows 10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |