Changes

From SME Server
Jump to navigationJump to search
Line 212: Line 212:  
  yum install php*php-pecl-xdebug3
 
  yum install php*php-pecl-xdebug3
   −
Next you need a small template fragment to enable remote debugging:
+
Next you need a small template fragment to enable remote debugging.
 +
 
 +
Xdebug 2
    
  mkdir -p /etc/e-smith/templates-custom/etc/php.ini
 
  mkdir -p /etc/e-smith/templates-custom/etc/php.ini
Line 228: Line 230:  
  xdebug.remote_mode                    = req
 
  xdebug.remote_mode                    = req
 
  xdebug.max_nesting_level              = 5000
 
  xdebug.max_nesting_level              = 5000
 +
 +
 +
Xdebug 3
 +
 +
New syntax.
 +
 +
https://xdebug.org/docs/upgrade_guide
 +
https://xdebug.org/docs/all_settings
 +
 +
nano /etc/e-smith/templates-custom/etc/php.ini/90XdebugSettings
 +
 +
[Debugger]
 +
xdebug.start_with_request=yes
 +
xdebug.discover_client_host=true
 +
xdebug.remote_cookie_expire_time = 3600
 +
xdebug.client_host=localhost
 +
xdebug.client_port = 9000
 +
xdebug.remote_handler = dbgp
 +
xdebug.idekey=users
 +
xdebug.mode = debug
 +
    
Expand templates and restart services:
 
Expand templates and restart services:
Line 241: Line 264:  
     with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
 
     with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
 
     with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans
 
     with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans
 +
 +
Or like this:
 +
 +
php80 -v
 +
PHP 8.0.19 (cli) (built: May 10 2022 08:07:35) ( NTS gcc x86_64 )
 +
Copyright (c) The PHP Group
 +
Zend Engine v4.0.19, Copyright (c) Zend Technologies
 +
    with Zend OPcache v8.0.19, Copyright (c), by Zend Technologies
 +
    with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
    
====Komodo IDE====
 
====Komodo IDE====

Navigation menu