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 Ctrl+Alt+S to open the IDE settings and 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 ( Ctrl+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 an AMP package, the Xdebug extension may be already installed. To learn more on upgrading to Xdebug 3, see 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 Ctrl+Alt+S to open the IDE settings and 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. |