Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Ubuntu installs phpstorm+xdebug dynamic debugging environment

Shulou Source: shulou.com Published: 2022-06-01 09:24:53 09月14日 Update

Ubuntu installs phpstorm+xdebug dynamic debugging environment

Install the vmware virtual machine and ubuntu18.04

Install ifconfig apt install net-tools upgrade update system apt-get update apt-get upgrade

Install php+apche+mysql

Install apache2 apt-get install apache2 install php add-apt-repository ppa:ondrej/php

Apt-get install php5.6 apt-get install libapache2-mod-php5.6

Install mysql apt-get install mysql-server mysql-client

SET PASSWORD FOR 'root'@'localhost' = PASSWORD (' 123456'); install phpstorm+xdebug

Install phpstorm+jdk

Install jdk: apt install default-jre install phpstorm download installation package: copy https://download-cf.jetbrains.com/webide/PhpStorm-2018.2.3.tar.gz to the virtual machine extract, perform. / bin/phpstorm.sh installation

Install xdebug apt-get install php-xdebug

Php-v to see if xdebug is installed successfully

Configure in php.ini:

Zend_extension = / usr/lib/php/20170718/xdebug.so

Xdebug.auto_trace=on

Xdebug.collect_params=on

Xdebug.collect_return=on

Xdebug.trace_output_dir= "/ tmp/xdebug"

Xdebug.profiler_enable=on

Xdebug.profiler_output_dir= "/ tmp/xdebug"

Xdebug.remote_enable = on

Xdebug.remote_handler = dbgp

Xdebug.remote_host= localhost

Xdebug.remote_port = 9000

Xdebug.idekey = PHPSTORM

Configure phpstorm:

File-setting-php

Debug demo

Note: do not start phpstorm with root permissions

Tags: Configuration dynamic environment success permissions system upgrade update Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB vpn NVidia OPPO Reno