phpstorm

PhpStorm wrong background

孤街醉人 提交于 2020-02-16 07:13:51
问题 After the update of PhpStorm, in Blade templates, the script tag is highlighted: in the settings, all is ok: Why this is highlighted? 回答1: Check in Language Injection for NOT "Built-in" rows, disable item that you not recognize. 来源: https://stackoverflow.com/questions/59581588/phpstorm-wrong-background

PhpStorm wrong background

天涯浪子 提交于 2020-02-16 07:13:06
问题 After the update of PhpStorm, in Blade templates, the script tag is highlighted: in the settings, all is ok: Why this is highlighted? 回答1: Check in Language Injection for NOT "Built-in" rows, disable item that you not recognize. 来源: https://stackoverflow.com/questions/59581588/phpstorm-wrong-background

PhpStorm - Disable SQL inspection for one line

て烟熏妆下的殇ゞ 提交于 2020-02-15 09:14:50
问题 I am using the ZendDb database adapter which doesn't bring all the tweaks SQL can do. For example if I want to do a REPLACE INTO I would have to code it like this: $SQL = sprintf('REPLACE INTO %s (id, NAME, cache_id, compile_id, content) VALUES (%s, %s, %s, %s, %s)' % array(self::TABLE_NAME, $id, $name, $cache_id, $compile_id)); $this->_zdb->query($SQL); The problem is that PhpStorm tells me that the %s is an error inside the SQL. When I try hotfixing it with Alt + Enter I don't get the

PHPSTORM下安装XDEBUG

北城以北 提交于 2020-02-10 07:56:08
本文不是教程安装XDEBUG,具体的请自行百度(我也是按照百度上的一步步来的)。 以下纠正几点目前我安装时查看播客的不对之处: 1. Setting > PHP > DEBUG > CBG Proxy 此处的端口应该为你在php.ini文件中填写的端口,xdebug默认的端口为9000。之前我这一直报错,以为是端口被占用改为了9001,下面会详情介绍,也是我卡了一个多小时的主要原因。 2.Setting PHP > SERVER 下填写的应该是你当前项目的url地址,若你自定义了域名的话(我使用的是phpstudy)。并且此处填写的地址和你在后续RUN > EDIT CONFIG下配的路径是你当前项目的地址路径。 (可能说的不清楚,就是当你点击那个url的时候,浏览器可以打开你的项目,见图二)不要认为一直是localhost,要根据你的实际情况来。况且,使用phpstudy的话,localhost的路径是phpstudy/www目录之下, 我目前的项目代码是不在www目录之下的,所以使用localhost的话,就会找不到相应的文件。 (图一) (图二) 3. 之前看过的所有播客都说配置XDEBUG后都要下载一个xdebug helper的插件!!! 这就是困扰我最久的一点!请各位同仁记住,这个插件是这样的: 记住!!!坑爹呢,这是!!!之前看到的播客让人下载的都是上图中第一个插件

phpstorm使用phpunit的方法

半腔热情 提交于 2020-02-08 01:42:46
1、首先下载phpunit composer require --dev phpunit/phpunit ^7 这个CLI很重要,要不然后续的配置不行,我这边是配置了PHP的全局变量,就是php.exe的位置。 3、配置 出现phpunit的版本version说明可以了 4.配置需要测试的范围 这样配置完就可以run了 然后是如何生成测试文件 单击要测试的类 选择生成的位置等等 然后引入文件后,就可以右上角点了 单一的方法可以点左侧就行了 来源: CSDN 作者: PHP加油 链接: https://blog.csdn.net/qq_36085872/article/details/104212351

Next occurrence of search pattern (Panels)

时光总嘲笑我的痴心妄想 提交于 2020-02-07 12:28:23
问题 When you type something in Project or Database panels search pointer moves to the most fitting names. Can I choose between found matches using a shortcut? Tab key isn't work in this case. 回答1: Use Arrow Up and Arrow Down keys. 来源: https://stackoverflow.com/questions/24928330/next-occurrence-of-search-pattern-panels

breakpoint does not hit in phpstorm+xdebug

匆匆过客 提交于 2020-02-05 14:20:30
问题 os: windows 7 web server: xampp 1.8.2 (php version: 5.4.27) phpstorm: 6.0.3 in php.ini: [XDebug] zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll" ;xdebug.default_enable=1 ;xdebug.auto_trace=1 ;xdebug.show_exception_trace = 1 ;xdebug.collect_vars = 1 ;xdebug.collect_params=1 ;xdebug.collect_return=1 ;xdebug.profiler_append = 1 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = "D:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out

breakpoint does not hit in phpstorm+xdebug

筅森魡賤 提交于 2020-02-05 14:19:13
问题 os: windows 7 web server: xampp 1.8.2 (php version: 5.4.27) phpstorm: 6.0.3 in php.ini: [XDebug] zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll" ;xdebug.default_enable=1 ;xdebug.auto_trace=1 ;xdebug.show_exception_trace = 1 ;xdebug.collect_vars = 1 ;xdebug.collect_params=1 ;xdebug.collect_return=1 ;xdebug.profiler_append = 1 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = "D:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out

breakpoint does not hit in phpstorm+xdebug

旧时模样 提交于 2020-02-05 14:18:49
问题 os: windows 7 web server: xampp 1.8.2 (php version: 5.4.27) phpstorm: 6.0.3 in php.ini: [XDebug] zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll" ;xdebug.default_enable=1 ;xdebug.auto_trace=1 ;xdebug.show_exception_trace = 1 ;xdebug.collect_vars = 1 ;xdebug.collect_params=1 ;xdebug.collect_return=1 ;xdebug.profiler_append = 1 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = "D:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out