![]() 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. 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. Xdebug will scan up to 5 subsequent lines, stop at the line where executable code is located, and update the breakpoint definition to this line.į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. If there is no such code on the line that the breakpoint refers to, the corresponding breakpoint cannot be hit. Under this mechanism, the debugger evaluates whether PHP can generate internal executable bytecode for the current line. Resolve breakpoint if it's not available on the current line (Xdebug 2.8+): the selected checkbox enables support for the Xdebug breakpoints resolving mechanism. To have IntelliJ IDEA 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 9003,9000 to have IntelliJ IDEA 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 IntelliJ IDEA. In the IDE settings ( Control+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, IntelliJ IDEA 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 IntelliJ IDEA, see Configuring local PHP interpreters and Configuring remote PHP interpreters. On the PHP page, choose the relevant PHP installation from the CLI Interpreter list and click next to the field. Press Control+Alt+S to open the IDE settings and then select Languages & Frameworks | PHP.Ĭheck the Xdebug installation associated with the selected PHP interpreter: To disable the Zend Debugger and Zend Optimizer tools, which block Xdebug, remove or comment out the following lines in the php.ini file:Ĭonfigure Xdebug in IntelliJ IDEA Check Xdebug installation In the CLI Interpreters dialog that opens, the Configuration file read-only field shows the path to the active php.ini file. ![]() On the PHP reference page that opens, click next to the CLI Interpreter field. In the Settings dialog ( Control+Alt+S), click PHP under Languages & Frameworks. Open the active php.ini file in the editor: Integrate Xdebug with the PHP interpreter Refer to the instructions specific for your package. If you are using a preconfigured AMP (Apache, MySQL, PHP) package, the Xdebug extension may be already installed. To learn more on upgrading to Xdebug 3, refer to the Upgrade guide. Xdebug 3 brings performance improvements, simplified configuration, and PHP 8 support. Open the Marketplace tab, find the PHP plugin, and click Install (restart the IDE if prompted).ĭownload the Xdebug extension compatible with your PHP version and install it as described in the Xdebug installation guide. Press Control+Alt+S to open the IDE settings and then select Plugins. The PHP plugin is available only in IntelliJ IDEA Ultimate. This functionality relies on the PHP plugin, which you need to install and enable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |