


Then click "Listen for debug connections" in the toolbar, and run your script a dialog box should pop up showing the "Server name:" and "Server port:" it is trying to match, as well as confirming the remote file path. To find out what details you need to set up, go into "Settings > Languages and Frameworks > PHP > Debug", enable "Force break at the first line when no path mapping specified", and make sure "Ignore external connections through unregistered server configurations" is not ticked.

For CLI scripts, the info to put in here will be based on your connection to the server where the CLI script runs. Normally, you would enter a URL into "Host" and set "Port" to the HTTP port, e.g. You need to set up a "server" configuration in "Settings > Languages and Frameworks > PHP > Servers" which maps the paths as seen on the server to the paths in your project.
