Click the link to open the Resolve Path Mappings Problem dialog and map the problem file to its local copy. The debugger stops at the first line of this file and Examine/update variables shows the following error message: Cannot find a local copy of the file on server and a link Click to set up mappings. Select the Force break at first line when no path mapping specified checkbox to have the debugger stop as soon as it reaches and opens a file that is not mapped to any file in the project on the Servers page. To have PhpStorm accept any incoming connections from Xdebug engine through the port specified in the Debug port field, select the Can accept external connections checkbox. By default, the Debug port value is set to 9001,9003 to have PhpStorm listen on both ports simultaneously. You can specify several ports by separating them with a comma. For Xdebug 3, the default port has changed from 9000 to 9003. This must be the same port number as specified in the php.ini file:īy default, Xdebug 2 listens on port 9000. In the Debug port field, appoint the port through which the tool will communicate with PhpStorm. On the Debug page that opens, specify the following settings in the Xdebug area: Learn more about checking the Xdebug installation in Validate the Configuration of a Debugging Engine.ĭefine the Xdebug behaviour. If no debugger is configured, PhpStorm shows the corresponding message:Īlternatively, open the Installation Wizard, paste the output of the phpinfo(), and click Analyze my phpinfo() output. The name and version of the debugging engine associated with the selected PHP installation (Xdebug or Zend Debugger). ![]() The version of the selected PHP installation. The CLI Interpreters dialog that opens shows the following: ![]() The list shows all the PHP installations available in PhpStorm, see Configure local PHP interpreters and Configure remote PHP interpreters. On the PHP page, choose the relevant PHP installation from the CLI Interpreter list and click next to the field. Press Ctrl+Alt+S to open the IDE settings and select PHP.Ĭheck the Xdebug installation associated with the selected PHP interpreter: The phpinfo output should contain the Xdebug section:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |