I've tried for months to get xdebug working with no success. I have spent 10 to 12 hours reading the Jet Brains tutorials, watching YouTube videos, reading blogs, reading the posts in this community, configuring, and re-configuring Intellij and my dev environment. I still have yet to get Intellij to acknowledge a zero-config debugging session initiated from my browser. I get the same results when running a PHP Remote Debug configuration--it just sits and waits but never connects when initiating a session from the browser.
I'm ready to give up. This is my last hope. Here is my configuration info. Please let me know if I have left out any important information:
I'm developing on a Mac, Mojave (10.14.4). My dev server is MAMP Pro. My projects are set up to run with their own domain names on MAMP (the one I will use for demo is http://frontdoor). I've never had trouble using MAMP, however I've considered that it could be part of the problem, I'm just not sure how.
I've been through the tutorials multiple times and I believe I have everything configured correctly, but it's still not working so I must be missing something, somewhere. Here are screen shots of my Intellij configs and php.ini file(s). I know that MAMP has an ini for the server and the command line so I make sure they are identical.
This is the xdebug section of the php.ini. I have disabled opcache so there are no conflicts. Not sure if there is anything else I should say about my php.ini file.
Below is the xdebug section from a phpinfo() page.
I've installed the Firefox and Chrome browser extensions and tried both with the same results. Below is a config screen from Firefox. The Chrome config is the same.
Here is the PHP configuration with paths and xdebug version in Intellij.
This is the debugger validation screen in Intellij. It passes and Intellij knows where everything is.
When I click on the listener icon (the debug phone) and then start the browser for a zero-config debug session nothing happens. I mean not even an entry in the xdebug log. In fact, I never get anything in the xdebug log.
The Intellij/PHPStorm instructions page for Zero-Config indicates that an "Incoming Connection From Xdebug" window becomes available. I've never seen that, nor can I find it in any menu or set up option so that's where my zero-config experience ends every time.
When I try to use the Run/Debug Configuration it just waits for a connection but never acknowledges the browser attempts to connect (see below).
This is my Run/Debug Configuration for this app.
The most frustrating thing about using the Run/Debug Configuration is, it deactivates any break points I set and displays the following message when I hover over the former break point.
I cant figure out how the index file could not be in the path, or how the path could not be mapped. I've searched Intellij settings and PHP configurations and have set every path and mapping variable related to this application. I've checked my MAMP server settings to make sure I havent missed something (there doesn't seem to be anything wrong with the MAMP settings. The application runs correctly without any issues--one of the reasons why I chose this app for the test).
The last thing I tried is debugging a single page in a completely different directory. I got the same non-response. Intellij just kept waiting for a connection even though the browser plugin was active and the page was being refreshed.
So, here I am frustrated and feeling like xdebug is a complete waste of time. I know it will be worth my effort if I can get it working. Others seem to have been successful installing it. Please help me figure this out. I'm hoping someone can find something I've missed.