phpstorm

PhpStorm header.php file is greyed out

大憨熊 提交于 2021-02-08 07:50:04
问题 I'm using PhpStorm and for some reason in all of my projects the header.php file got messed up. It's just greyed out and PhpStorm doesn't recognize the PHP in the specific files named header.php . The rest is working fine. It's driving me crazy and I can't figure it out. I already checked file templates, reset it to default. Nothing helps. I would appreciate any solution, thanks. 回答1: Go to Settings/Preferences | Editor | File Types Locate Text entry in top table Locate and remove header.php

PHPStorm / debugger not stopping at certain breakpoints

南笙酒味 提交于 2021-02-07 13:28:58
问题 I've set up XDebug (2.2.1) and PHPStorm-IDE (Mac OS X 10.7.5) with standard LAMP stack for Mac OS (Apache 2.2.22, PHP 5.3.15). /etc/php.ini [xdebug] zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so xdebug.file_link_format="txmt://open?url=file://%f&line=%1" xdebug.remote_enable = On xdebug.remote_autostart = "PHPSTORM" xdebug.var_display_max_data = 1024 xdebug.dump.GET=* xdebug.dump.POST=* xdebug.show_local_vars=On xdebug.dump.SERVER=* xdebug.dump_globals=On xdebug

PhpStorm structural searching to find a self-assignment in a foreach loop

Deadly 提交于 2021-02-07 10:35:56
问题 I have noticed a pattern among some of my team's developers where we will do a self-assignment of an array in a foreach loop, and I am looking for the proper search parameters to pass into PhpStorm's structural search to match the first workflow, but not the second in the following example: public function example() { $array = []; foreach ($array as $a) { $array[$a] = 1; //Match this one } $someOtherVariable = []; foreach($array as $ab) { $someOtherVariable[] = 2; //Don't match this one } }

Unable to watch variables value at PhpStorm breakpoint

本秂侑毒 提交于 2021-02-05 08:16:47
问题 I am facing a strange problem when I am debugging PhpStorm, I am using XAMPP + PhpStorm + Xdebug. I write code below and set up 4 breakpoint <?php $a=1; $b=2; $c=$a+$b; echo $c; After I click listener button and debug button,Chrome visit http://localhost/index.php , the first break point is reached. Then strange phenomenon is here: I can not watch variables value of $a , $b and $c , no matter in debug window or I put mouse over these variables. I click F8 , the left 3 breakpoints will not

PHPStorm. Reformat code. Chained method call wrapping

北城余情 提交于 2021-02-04 22:11:43
问题 I have some questions regards to phpstorm code reformat. I have long line and single line. $this->getSelect()->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here'); $this->getSelect()->join('some_code_here')->join('some_code_here'); I want to configure setting: Code style / PHP / Wrapping and Braces / Chained method calls This setting has 4 variants: Do not wrap (1) Wrap if long (2) Crop down if long (3) Wrap always (4) When I

PHPStorm. Reformat code. Chained method call wrapping

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-04 22:10:29
问题 I have some questions regards to phpstorm code reformat. I have long line and single line. $this->getSelect()->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here')->join('some_code_here'); $this->getSelect()->join('some_code_here')->join('some_code_here'); I want to configure setting: Code style / PHP / Wrapping and Braces / Chained method calls This setting has 4 variants: Do not wrap (1) Wrap if long (2) Crop down if long (3) Wrap always (4) When I

PhpStorm debug issue

梦想的初衷 提交于 2021-02-04 21:46:02
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2

PhpStorm debug issue

时光怂恿深爱的人放手 提交于 2021-02-04 21:45:29
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2

全家桶通用激活码activation code(支持idea,pycharm,webstorm,phpstorm)

心已入冬 提交于 2021-02-04 16:11:34
免修改hosts文件哦,如果修改过请删除网址再激活 (更新日期:2月1号) 温馨提示:激活码支持idea,pycharm,webstorm, php storm激活 (注意:如果激活后还显示cancelled,请重启一下软件就可以了) 激活码会定期更新,后续直接在公众号「Python爬虫数据分析挖掘」提取:回复关键词 “激活码” 获取 来源: oschina 链接: https://my.oschina.net/u/4638454/blog/4945153

Xdebug with PhpStorm on Ubuntu

≡放荡痞女 提交于 2021-01-29 15:21:10
问题 I am wondering if anyone can shed any light on the appropriate measures to take to ensure that the following set up will allow Xdebug and PhpStorm to work. We have a LAMP stack running fine, with PHP and Xdebug 3 running on an Azure VM. We are on a shared office network with a public IP address but no access to the firewall for the incoming line, although it's very relaxed. We are aiming to connect our machines (x3) to debug our remote web server (the LAMP stack on the Azure VM). We can