PhpStorm和WAMP配置调试参数,解决实际问题。
问题描述:
Error. Interpreter is not specified or invalid. Press "Fix" to edit your project configuration.
解决方法:
打开File->Settings
浏览到Languages & Frameworks->PHP
Include Path添加D:WAMP64appsphpsysinfo3.2.3sampledistrotestPear
点击CLI Interpreter右边的…按钮,打开如下窗口
点击左上角的绿色加号按钮
选择Other Local…
配置如下:
假设WAMP安装路径为D:WAMP64,版本号可能会有差异,根据实际情况进行浏览选择。
PHP executable设置为D:WAMP64inphpphp5.6.16php.exe(点击…按钮浏览)
Debugger extension设置为D:WAMP64inphpphp5.6.16zend_extphp_xdebug-2.4.0rc2-5.6-vc11-x86_64.dll(点击…按钮浏览)
设置结果如下:
点击OK按钮保存设置。
最终设置结果如下:
点击OK按钮保存设置。