phpstorm

Xdebug from Docker suddenly stopped working in PhpStorm

喜欢而已 提交于 2021-01-25 07:57:07
问题 I have used this for a long time without any issue, it was still working yesterday. I don't know what happened, maybe a silent update of PhpStorm or whatever - but it stopped working. I checked with a local script, Xdebug still activates. I also used PhpStorm validation - no problem : Now, when I load a page of the project, after activating the bookmarklet, it doesn't trigger anything. Also, I used to be able to launch scripts from the command line inside docker this way : export PHP_IDE

Xdebug: [Step Debug] Could not connect to debugging client

僤鯓⒐⒋嵵緔 提交于 2021-01-22 07:06:36
问题 I would like to try Xdebug 3.0.0RC1 to explore what has changed and the new features that come with it. I am also using the latest PhpStorm 2020.3 EAP which supports Xdebug 3 with no major config needed. Below is my PhpStorm config for the Debugger: And here is the configuration I have tried for Xdebug3: zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so xdebug.mode=debug xdebug.start_with_request=yes xdebug.client_host=host.docker.internal # here I tried several

Why do I get a PHPDoc warning in PhpStorm over this code

家住魔仙堡 提交于 2021-01-21 12:23:09
问题 I can't understand why PhpStorm gives me the following warning PHPDoc comment does not match function or method signature over this method: /** * Create a new instance of the class * @param string $classname Class to instantiate * @return object the instance * @throw FactoryException If the class is not instantiable */ private function newInstance($classname) { $reflectionClass = new \ReflectionClass($classname); if (! $reflectionClass->isInstantiable()) { throw new FactoryException("The

PhpStorm 2020.2 - PHP Built-in functions are not recognized

試著忘記壹切 提交于 2021-01-19 08:36:19
问题 I just installed PhpStorm 2020.2, and notice that all php base classes like Closure or mysqli are not been identified by the IDE. Looking at the left where the PHP base files are, it just show the folders, like you can see in the first image, on the other hand, my older PhpStorm 2017 has the folders with the files inside it and cant identify all php base classes PhpStorm 2020.2 PhpStorm 2017 回答1: It's a known issue. AFAIK there is still no solid idea on why it happens and why only some users

无限重置idea试用期过期时间插件 简单方便 亲测可用

大城市里の小女人 提交于 2021-01-17 10:34:51
相信破解过IDEA的小伙伴,都知道jetbrains-agent这个工具,没错,就是那个直接拖入到开发工具界面,一键搞定,so easy的破解工具!这个工具目前已经停止更新了,尽管还有很多小伙伴在使用,但是对新版本IDE的支持已经不是很稳定了。下面我会分享一个无线重置IDE过期时间的插件,让你不太再为IDE频繁时效而烦恼。 当然,如果你习惯了使用老版本的IDE,这个工具还是可以继续使用的,关注公众号【终码一生】,公众号后台回复关键词“破解工具”即可获取jetbrains-agent下载,这里不再过多介绍。 如果不嫌麻烦,习惯了使用激活码,也可以。我们也提供, http://idea.94goo.com 定期更新。 ok,下面是使用插件无限重置IDE的试用期。做好准备! 老规矩,先上一张图片,永远都是30天的试用期,哈哈哈~~~ 先把工具下载到本地,下载方式在最下面。 使用也很简单,直接把插件拖入到IDE界面中即可(这里以DataGrip为例演示)。如下: 第一次拖入会提示是否重置过期时间。可以直接点击重置。 如果第一次没有重置,可以打开插件界面。简单设置下。 勾选默认自动重置,这样我们就不用每次都通知了。 结束了,直接点击Reset,重置时间,然后重启IDE。 目前支持: IntelliJ IDEA AppCode CLion DataGrip GoLand PhpStorm

搭载M1的新Mac到底适不适合你

浪子不回头ぞ 提交于 2021-01-07 19:26:45
// 每日前端夜话 第465篇 // 正文共:5300 字 // 预计阅读时间:10 分钟 每次 Apple 的新品发布活动都吸引了很多目光,但是 2020 MacBook Air,MacBook Pro 和 Mac Mini 的发布不仅仅是新功能和时尚的工业设计。重大新闻隐藏在了新 MacBook 的阳极氧化铝机箱中的 M1 片上系统(SoC)中,它取代了 13 寸 MacBook 和 Mac Mini 中的英特尔处理器。 为什么过渡到 Apple 处理器这么重要?毕竟苹果自 2010 年以来就一直在设计它的智能手机处理器,这并不是它第一次采用新的 CPU 架构。苹果已经经历了许多不同的体系结构,从 Wozniak 时代的摩托罗拉 CPU 到 90 年代的PowerPC 芯片,再到 2005 年的英特尔 x86 处理器。现在他们正朝着自己设计的基于 ARM 的处理器发展。相比之下,自 1981 年 IBM 推出第一台 PC以来,Windows PC 平台就一直停留在 x86 处理器上。 今天,我们将仔细研究 Apple 的新型 M1 芯片,以及它对软件工程师、设计师、消费者和整个行业的影响。为了简洁起见,我不会为你提供详细的性能评估,也不会测试每个软件和工具、旧版软件、SDK 等的兼容性,因为你可以轻松的找到自己信任测试和评估数据,我们把重点放在全局上,并解决有兴趣购买新款 M1

Create Vanila HTML / JS project inside PhpStorm where PHP has already been configured

穿精又带淫゛_ 提交于 2021-01-07 02:49:34
问题 I use Storm daily for PHP/Laravel, and hence have PHP configured. When I want to create a vanilla HTML / JS side project, Storm takes it upon itself to add the PHP libraries without asking. I don't want any PHP Libraries. When initially creating the project, I used "empty project". Here is a screen shot to illustrate. So, how to create an empty project without PHP libraries? 回答1: You are using PhpStorm, an IDE that supports PHP. That entry that you see there is a list of stubs for PHP (the

PHP Error: Call to undefined method stdClass::save() in Psy Shell code on line 1

こ雲淡風輕ζ 提交于 2021-01-05 12:56:53
问题 I'm new in Laravel, I'm using tinker to create a record: $Profile=new \App\Profile(); => App\Profile {#3038} >>> $profile->title='Premier Titre' PHP Warning: Creating default object from empty value in Psy Shell code on line 1 >>> $profile->title='Premier Titre'; => "Premier Titre" >>> $profile->description='Description'; => "Description" >>> $profile->user_id=1; => 1 >>> $profile->save() PH I have the following error:PHP Error: Call to undefined method stdClass::save() in Psy Shell code on

XDebug stopped working in PHPStorm

╄→гoц情女王★ 提交于 2020-12-28 18:51:10
问题 I've been beating my head against this for hours. I've come back to do some work in PHPStorm after not having used it in a couple of weeks, and for some reason the debug doesn't work any more. It used to work, but now it doesn't and I have no idea what is going on. I'm running on Windows, using IIS, PHP version 5.3.8. The XDebug is installed, and I've set the configuration in PHP.ini as per the usual instructions. When I run phpinfo() everything looks normal (ie. XDebug is there). I've

XDebug stopped working in PHPStorm

一个人想着一个人 提交于 2020-12-28 18:48:43
问题 I've been beating my head against this for hours. I've come back to do some work in PHPStorm after not having used it in a couple of weeks, and for some reason the debug doesn't work any more. It used to work, but now it doesn't and I have no idea what is going on. I'm running on Windows, using IIS, PHP version 5.3.8. The XDebug is installed, and I've set the configuration in PHP.ini as per the usual instructions. When I run phpinfo() everything looks normal (ie. XDebug is there). I've