interpreter is not specified or invalid

A local PHP interpreter is a PHP engine installed on your computer opposite to a remote PHP interpreters that can be installed on a remote host or in a virtual environment set up in a Vagrant instance, see Configuring Remote PHP Interpreters.

In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Languages & Frameworks | PHP .

On the PHP page that opens, click In the CLI Interpreters dialog that opens, click fpm_start( "true" );

Optionally, you can customize the configuration settings of the PHP installation in the Additional area of the CLI Interpreters dialog.

In the Debugger extension field, specify the path to Xdebug. This enables PhpStorm to activate Xdebug when it is necessary if you have disabled it in the php.ini file, see Configuring Xdebug for Using in the On-Demand Mode.

In the Configuration options field, compose a string of configuration directives to be passed through the -d command line option and thus add new entries to the php.ini file. The directives specified in this field overr >-dxdebug.remote_enable=1 , -dxdebug.remote_host=127.0.0.1 , -dxdebug.remote_port=9001 , -dxdebug.remote_mode=req .

For example, if you specify the -dxdebug.remote_mode=jit directive it will overr >-dxdebug.remote_mode=req directive and thus switch Xdebug to the Just-In-Time (JIT) mode, see Debugging in the Just-In-Time Mode for details.

To do that, click

    To add a new entry, click To change the order of entries, click Click

    I searched on this site a lot and on google too but could not get the answer. What should be php’s interpreter path so that phpstorm recognizes it and thus i can do debugging? Anything missing??

    $ which php /usr/bin/php – Pratik Aug 21 ’15 at 17:32

    PhpStorm and WAMP configuration debugging parameters

    Error. Interpreter is not specified or invalid. Press “Fix” to edit your project configuration.

    Browse to Languages & Frameworks->PHP

    Include Path add D:WAMP64appsphpsysinfo3.2.3sampledistrotestPear

    Click CLI Interpreter on the right. Button to open the following window

    Click on the upper left corner of the green plus button

    Select Local Other.

    Configuration is as follows:

    Assuming that the WAMP installation path is D:WAMP64, the version number may be different, select option according to the actual situation.

    PHP executable set to D:WAMP64inphpphp5.6.16php.exe (click . Button to browse)

    Debugger extension set to D:WAMP64inphpphp5.6.16zend_extphp_xdebug-2.4.0rc2-5.6-vc11-x86_64.dll (click . Button browse)

    Set the results as follows:

    Click on the OK button to save the settings.

    The final set of results are as follows:

    Click on the OK button to save the settings.

    Posted by Thomas in PHP at Jan 14, 2017 — 12:44 AM

Оцените статью