View Issue Details

IDProjectCategoryView StatusLast Update
0002156XdebugDocumentationpublic2023-01-19 10:27
Reportergourav.gupta Assigned Toderick  
PrioritynormalSeveritytextReproducibilityN/A
Status resolvedResolutionno change required 
OSMACOS Version13.1 
Product Version3.2.0 
Summary0002156: Example file of environmental variable for xdebug-env.ini file
Description

Hi Team,

Recently, I've started using xdebug 3.0.2, I need some help and guidance where I need to know about the environment variables for xdebug-env.ini file.

Can you please share the example file or link from where I can take the reference and add it in my current xdebug-env.ini file.

My current xdebug-env.ini file

[xdebug]
xdebug.remote_enable = 1
;xdebug.remote_connect_back=1
;comment below line and uncomment above line for Windows/linux
xdebug.remote_connect_back = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9003
xdebug.remote_autostart = 1
xdebug.idekey = PHPSTORM
;xdebug.remote_host=host.docker.local
;comment below line and uncomment above line for Windows/linux
xdebug.remote_host = host.docker.internal
xdebug.client_host = host.docker.internal
xdebug.client_port = 9003
xdebug.log = "/tmp/xdebug.log"
xdebug.mode = debug
zend_extension=xdebug.so
xdebug.start_with_request=yes
;xdebug.discover_client_host=false

[error-Logging]
display_errors = On
display_startup_errors = On

And using it with latest PHPSTORM editor.

Thanks in advance :)

Steps To Reproduce

Normal example file I need

Additional Information

Share my file

Tags3.0.2, debug, xdebug
Attached Files
xdebug-env.ini (685 bytes)   
[xdebug]
xdebug.remote_enable = 1
;xdebug.remote_connect_back=1
;comment below line and uncomment above line for Windows/linux
xdebug.remote_connect_back = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9003
xdebug.remote_autostart = 1
xdebug.idekey = PHPSTORM
;xdebug.remote_host=host.docker.local
;comment below line and uncomment above line for Windows/linux
xdebug.remote_host = host.docker.internal
xdebug.client_host = host.docker.internal
xdebug.client_port = 9003
xdebug.log = "/tmp/xdebug.log"
xdebug.mode = debug
zend_extension=xdebug.so
xdebug.start_with_request=yes
;xdebug.discover_client_host=false

[error-Logging]
display_errors = On
display_startup_errors = On
xdebug-env.ini (685 bytes)   
Operating SystemMAC
PHP Version8.1.0-8.1.4

Activities

derick

2023-01-19 10:27

administrator   ~0006501

If Xdebug is installed through PECL, you can find a fully documented file in the xdebug directory of the result of pecl config-git doc_dir.

If it is installed through a package manager, then it depends on the distribution. Debian does not install it. On Fedora you will find it in /usr/share/doc/pecl/xdebug.

The latest version is also always available on GitHub: https://github.com/xdebug/xdebug/blob/master/xdebug.ini

Issue History

Date Modified Username Field Change
2023-01-17 11:33 gourav.gupta New Issue
2023-01-17 11:33 gourav.gupta Tag Attached: 3.0.2
2023-01-17 11:33 gourav.gupta Tag Attached: debug
2023-01-17 11:33 gourav.gupta Tag Attached: xdebug
2023-01-17 11:33 gourav.gupta File Added: xdebug-env.ini
2023-01-19 10:27 derick Assigned To => derick
2023-01-19 10:27 derick Status new => resolved
2023-01-19 10:27 derick Resolution open => no change required
2023-01-19 10:27 derick Note Added: 0006501
2023-01-19 10:27 derick Priority urgent => normal
2023-01-19 10:27 derick Severity major => text