![]() Alternatively turn on the Run | Break at first line in PHP scripts option from the main menu. When this checkbox is selected, PhpStorm does not attempt to create a deployment server configuration automatically.īreak at first line in PHP scripts: select this checkbox to have the debugger stop as soon as connection between it and PhpStorm is established (instead of running automatically until the first breakpoint is reached). Ignore external connections through unregistered server configurations: select this checkbox to have PhpStorm ignore connections received from hosts and through ports that are not registered as deployment server configurations. In the External connections area, specify how you want PhpStorm to treat connections received from hosts and through ports that are not registered as deployment server configurations. With this checkbox cleared, the debugger continues upon opening a file outside the current project.Įnable return function value debugging (Xdebug 3.2+): the selected checkbox adds an extra debugging step for inspection of return values in functions that return them immediately without storing in intermediate variables. When this checkbox is cleared, the debugger does not stop upon reaching and opening an unmapped file, the file is just processed, and no error messages are displayed.įorce break at first line when a script is outside the project: the selected checkbox makes the debugger stop at the first line as soon as it reaches and opens a file outside the current project. 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. 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.įorce break at first line when no path mapping specified: the selected checkbox makes 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. ![]() 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 Xdebug area, specify the following settings:ĭebug port: appoint the port through which the tool will communicate with PhpStorm. In the IDE settings ( Ctrl+Alt+S), select Debug under the PHP node to open the Debug page. Learn more about checking the Xdebug installation in Validate the Configuration of a Debugging Engine. 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:Ĭonfigure Xdebug in PhpStorm Check Xdebug installation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |