Mamp Xdebug Phpstorm
Choose a PHP Web Page (On old PHPStorm version it might be called PHP Web Application) on the drop down after you click the green plus. Edit the Configuration Name and add new server. Add new server with Host = localhost, on port 80 with Xdebug debugger: At last you need to select the newly created server, and edit the URL. Just-In-Time debugging and PHP Exception Breakpoints with PhpStorm and Xdebug. The latter can be done using XAMPP (Windows, Mac OS X, Linux) or MAMP (Mac OS X). You should find Xdebug info inside of phpinfo's output. If not, get the xdebug.so file in the right place and set up your php.ini file. Set PhpStorm DBGp settings to your IDE key e.g. 'PHPSTORM' and port '9000'. Make PhpStorm listen for incoming debug connections. Configure Xdebug in PhpStorm In the Settings/Preferences dialog Ctrl+Alt+S, select PHP. Check the Xdebug installation associated with the selected PHP interpreter: On the PHP page, choose the relevant PHP installation from the CLI Interpreter list and click next to the field.
FeaturesPhpStormTutorialsThe MAMP php.ini will include the Xdebug module (xdebug.so) when you enable Xdebug in the MAMP Pro GUI. Hopefully this helps you. It still might be better to build a whole new PHP, with a more up-to-date Xdebug, to replace the outdated PHP 7.3.9 that is currently included with MAMP Pro 5.7.
This blog post is obsolete!
Please check new up-to-date tutorial on Zero-configuration Web Application Debugging with Xdebug and PhpStorm
Hello guys,
We have done a lot of work to simplify the debugging process in PhpStorm 2.0 and we are very grateful to our early adopters for their invaluable feedback. Let’s try a new debugging work flow in PhpStorm 2.0.
Installation of Xdebug
Make sure that you have installed Xdebug properly. Don’t forget to set the xdebug.remote_enable setting to 1. You can validate your installation using checker from xdebug.org
Prepare PhpStorm
Phpstorm Xdebug Ssh
Toggle the ‘PHP Listen debug connections’ button. Don’t use any run configurations.
Set a breakpoint.
Activate debugger on server
In order to activate the debugger you need to set the special GET/POST or COOKIE parameter (more details). You can do it manually, but it is much more convenient to use one of the special tools such as browser toolbars or bookmarklets for that.
Try our bookmarklets generator and get bookmarklets which will work in any modern browser and allow you to start/stop a debugging session by controlling the Xdebug cookie.
Start a debug session in browser.
Reload the current page.
Configure Xdebug Phpstorm
Switch to PhpStorm and set the initial path mappings by selecting the path to the local copy of the script that we are debugging. These paths are similar if you are editing files directly on the server.
On reaching the breakpoint the debugger suspends. Now let’s investigate the application!
Troubleshooting
Phpstorm Setup Xdebug
In some cases you may get an error message “Remote file path ‘path/to/script/on/server.php’ is not mapped to any file path in project“. This means that PhpStorm does not know which local file corresponds to the specified remote file path.
Php Docker Xdebug Phpstorm
You can solve this problem quickly. Just click the ‘Edit path mappings’ link and set the necessary path mappings.
