Tips and TricksPHPStormX-DebugPHPTipsGUI

Apr 14, 2023

Do you have a problem in 2023 that sometimes PHP Storm wont work with X debug 3

By Vladimir Nikolic, CEO Coding Wisely

Do you have a problem in 2023 that sometimes PHP Storm wont work with X debug 3

Debugging your PHP code is an essential part of the development process. PHPStorm and XDebug 3 are powerful tools that can help you debug your code efficiently.

However, sometimes you may encounter an issue where the debugger never stops on a breakpoint. Here are some steps you can take to troubleshoot this issue.

First, check if XDebug is installed on your system by running the command php --version.

If it is not installed, you can install it using PECL by running the command pecl install xdebug.

Next, make sure that you have set the correct PHP.ini directives for XDebug. You can do this by adding the following lines to your PHP.ini file:

zend_extension="xdebug.so"
[xdebug]
xdebug.mode=debug
xdebug.client_port=9003
xdebug.client_host=127.0.0.1

After making changes to your PHP.ini file, make sure to restart your server to apply the changes. You can check if XDebug is properly loaded by running the command php -r "xdebug_info();". This will display information about the XDebug extension.

Make sure that the XDebug extension for your browser is installed and running.

Browser extension

This will allow PHPStorm to communicate with the browser and stop on breakpoints.

In PHPStorm, make sure that the debugger is listening by clicking on the little bug button. If the button is green, it means that the debugger is listening.

Listening

If you have followed all these steps and the debugger still does not stop on breakpoints, it may be an issue with your project settings in PHPStorm.

Check if you have set up a server in PHPStorm under PHP/Servers.

Servers

If you have, try deleting the server and reloading the page you are trying to debug. This should fix the issue.

Debugging can be a frustrating process, but with these steps, you should be able to troubleshoot the issue and get back to coding.

Happy debugging!

Other posts:

Laravel.rs Meetup #1: A New Era for the Serbian Laravel Community
Laravel
Laravel.rs Meetup #1: A New Era for the Serbian Laravel Community

On May 10th, 2025, Laravel.rs officially launched its first-ever meetup in Temerin, bringing together developers from across Serbia for a night of lightning talks, community networking, and a shared love for Laravel. With inspiring talks, open discussions, and future plans for workshops and hackathons, this kickoff event marked the beginning of a vibrant new chapter for Laravel in Serbia. 🚀🇷🇸

Vladimir NikolicVladimir Nikolic
May 15, 2025
Code, Stress, and Recovery: My Path to a Healthier Developer Life
Tips and Tricks
Code, Stress, and Recovery: My Path to a Healthier Developer Life

For years, I ignored the signs of burnout—long hours, constant stress, and the fear of failure. It caught up with me. I landed in the emergency room. This is my story of hitting rock bottom and rebuilding my health, mindset, and career.

Vladimir NikolicVladimir Nikolic
Feb 28, 2025
How to use git hooks to run scripts before the committing code to repo
LaravelTips and Tricks
How to use git hooks to run scripts before the committing code to repo

Make sure that all and everything you want to run before the pushing code to production, works as you expect. Simply use git hooks.

Vladimir NikolicVladimir Nikolic
Feb 15, 2024

Are you set to create something extraordinary?

Ready to take the next step? Let's work together to transform your ideas into reality. Contact us today to discuss how we can help you create impactful, user-centered solutions that drive success.

Contact Us