Editing
Xdebug.ini Configuration For XDebug Version 2
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<div class="alert alert-warning">XDebug is currently at version 3. These settings are outdated and archived here. See [[Debugging_Web_Applications_In_PHPStorm_With_Xdebug_And_Docker#xdebug.ini|Debugging Web Applications In PHPStorm With XDebug and Docker]] for current `xdebug.ini` settings.</div> <pre> zend.extension="/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler="dbgp" xdebug.remote_port=9001 xdebug.remote_autostart=1 xdebug.remote_connect_back=0 xdebug.idekey="docker" xdebug.remote_host=docker.for.mac.localhost xdebug.remote_log="/tmp/xdebug.log" </pre> * `xdebug.idekey` refers back to the IDE key entered in PHPStorm's run configuration. * `xdebug.remote_host` could be the IP address of the local machine, but this would have to be changed any time the IP address changes. See below for the work-around that explains the setting above. ** In a Mac OS terminal find the current IP with `ipconfig getifaddr en0` * `xdebug.remote_connect_back` must be set to "0" or else it would override the `xdebug.remote_host` settting. * `xdebug.remote_port` must be the same as '''PHPStorm''' > '''Preferences''' > '''Languages & Frameworks''' > '''PHP''' > '''Debug''' > '''Xdebug''' > '''Debug Port'''. * If you're debugging more than one PHP web application, then you either remove all Docker images except the one for the current app, or make sure that they are using different ports.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information