xdebug

symfony is slow

落爺英雄遲暮 提交于 2020-03-02 08:17:11
Since PHP 5.5 has now integrated the PHP OPCache, this speeds up the execution time. In my setup a full request with database access takes 180ms now. Steps: Update to the latest php version Enable OPCache Disable xdebug Set realpath_cache_size = 2M as DemonTPx mentioned php.ini settings: realpath_cache_size = 2M [XDebug] xdebug.profiler_enable = 0 xdebug.remote_enable = 0 [opcache] zend_extension = "C:\xampp18\php\ext\php_opcache.dll" opcache.enable = 1 opcache.enable_cli = 0 opcache.memory_consumption = 128 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 4000 Why is

php.ini xdebug配置

柔情痞子 提交于 2020-03-02 07:43:29
[PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ; PHP's initialization file, generally called php.ini, is responsible for ; configuring many of the aspects of PHP's behavior. ; PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP ;

让程序员不再苦逼的四大神器

你。 提交于 2020-03-01 14:53:43
做程序猿「媛」是一个苦逼的活,大周六地早起在技术群里招呼,看到没有啥人响应,说了一句,「估计都没有醒」,然后一位哥们抛过来,「在加班」 ! 做 Web 开发更是一个苦逼的活,不像是做 iOS,搞定客户端,基本上就万事大吉了。做 Web 开发不仅仅是要做后端,前端也需要了解和熟悉! 做前后端通吃的 DevOps 全栈工程师绝对是最苦逼的活,不但需要做开发,而且还要了解运维、优化,不会运维的工程师绝对不是一个好架构师! 但所幸的事,一个优秀的工程师尽管很忙,尽管要熟悉前后端、系统、运营、优化,但是在他的工具箱里,放着一大堆工具,让这种生活变得不那么苦逼。 这里就介绍四个让我们 DevOps 生活变得美好的神器。分别是 Xdebug、XHProf 、 OneAPM 和 SocketLog。 Xdebug 作为开发人员,睡得最踏实的事是对自己写的代码了如指掌,无论是从功能层面,还是性能层面。而做 Web PHP 开发,比较棘手的一件事情就是代码的调试。作为脚本语言,在远程服务器端运行,客户端生成的全是 HTML 代码,一般认为我们无法准确地调试运行的情况,更不要说单步调试、变量监控等事情了。其实这是有误解的,有一个 PHP 扩展 Xdebug 能让方便地让我们调试远程服务器上运行的代码。 方法很简单,从 Xdebug 下载最新版的源代码。 wget 解压: tar –zxvf xdebug

vscode php调试

房东的猫 提交于 2020-02-28 02:46:44
​1、vsc插件 安装PHP Debug 插件PHP Extension Pack 2.vs code设置 ... ... "php.validate.executablePath" : "D:/BtSoft/WebSoft/php/7.1/php.exe" , } } 3.配置xdebug 创建一个 test.php ,创建一条语句 phpinfo() ,然后将得到的信息粘贴到XDebug官网 XDebug installation wizard 这个页面中。这个页面会分析好你的PHP环境 下载XDebug.dll 复制到{phproot}/ext/ 在{phproot}/php.ini中 [XDebug] zend_extension = "D:\BtSoft\WebSoft\php\7.1\ext\php_xdebug-2.9.1-7.1-vc14-nts.dll" xdebug.auto_trace=on xdebug.collect_params=on xdebug.collect_return=on xdebug.remote_enable = on xdebug.remote_handler = dbgp xdebug.remote_host = localhost # 设置端口号,默认是9000,此处因为本地环境端口冲突故设置为9001(在vscode配置中需要用到

Kettle远程debug

旧巷老猫 提交于 2020-02-27 03:13:34
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 来源: oschina 链接: https://my.oschina.net/goudingcheng/blog/3166303

java -jar的参数你都会吗?

我是研究僧i 提交于 2020-02-26 04:33:52
1、断点运行 # java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8123,suspend=n -jar ifilldream.jar 断点运行,即可在IDEA中对线上项目进行DEBUG,需要指定一个端口,这里使用了8123作为端口 2、配置运行内存运行 # java -jar -Xms500m -Xmx500m -XX:PermSize=128M -XX:MaxPermSize=256M ifilldream.jar 3、指定配置文件运行 # java -jar ifilldream.jar --spring.profiles.active=prod 其中prod表示配置文件名称。 4、断点+指定内存运行 # java -Xms500m -Xmx500m -XX:PermSize=128M -XX:MaxPermSize=256M -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8123,suspend=n -jar ifilldream.jar 5、指定配置文件+断点运行 # java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8123,suspend=n -jar

php xdebug phpstrom配置

随声附和 提交于 2020-02-25 12:37:26
windows环境我使用的wampserver集成环境 准备: 1.xdebug根据自己php版本自行下载 2.phpstrom自行下载安装 3.wamoserver自行安装下载 开始: 一、设置xdebug配置项 1、打开php.ini配置文件,讲下面添加到配置中 zend_extension="E:/wamp/bin/php/php7.3.5/zend_ext/php_xdebug-2.7.2-7.3-vc15-x86_64.dll" #自己本地服务器存放的位置 xdebug.remote_port=9018 #跟phpstrom配置端口一致 xdebug.remote_autostart=1 #远程自动启动项(1表示默认开启,0表示关闭); xdebug.auto_trace=1 #自动跟踪项(1表示默认开启,0表示关闭); xdebug.remote_host="127.0.0.1" #远程主机IP地址(这里我们设置了127.0.0.1,也可以是localhost) xdebug.remote_enable=1 #远程开启项(1表示默认远程开启,0表示关闭) 二、phpstorm配置xdebug 1、打开phpstorm,在file栏目下找到setting设置。 2、在设置中,打开debug部分进行设置远程端口号操作,这里的端口号要与你配置文件中设置端口号一样。 3

PHP7 Xdebug配置方式

不打扰是莪最后的温柔 提交于 2020-02-23 03:52:06
方式一 到http://xdebug.org/files/php_xdebug-2.4.1-7.0-vc14.dll下载最新版的XDebug文件。 下载之后放到PHP7根目录下的ext子目录下。 PHP7 配置 修改PHP7根目录下的PHP.ini文件,在最后添加如下代码 [XDebug] ;; Only Zend OR (!) XDebug zend_extension=f:\xampp\php\ext\php_xdebug-2.4.1-7.0-vc14.dll xdebug.remote_enable=1 xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.collect_vars = On xdebug.collect_return = On xdebug.collect_params = On xdebug.profiler_enable=1 xdebug.profiler_output_dir=f:\xampp\tmp 方式二 到http://xdebug.org/files/php_xdebug-2.4.0rc3-7.0-vc14-x86_64.dll下载最新版的XDebug文件。 下载之后放到PHP7根目录下的ext子目录下。 PHP7 配置

Xdebug not loading

孤者浪人 提交于 2020-02-22 15:10:34
问题 Windows 7 64-bit PHP 5.3.10 php_xdebug-2.1.4-5.3-vc9-x86_64 I got the correct download from pasting the output from phpinfo() here. This is what's in my php.ini file: zend_extension = c:\php\ext\php_xdebug-2.1.4-5.3-vc9-x86_64.dll I've tried with and without _ts . I've tried 32-bit and 64-bit (the wizard actually recommends the 32-bit version for some reason). Why isn't this working? 回答1: Have you added some basic configuration? [xdebug] zend_extension = "c:\php\ext\php_xdebug-2.1.4-5.3-vc9

phpstorm 配置xdebug

你。 提交于 2020-02-21 04:42:30
之前一直用的是sublime+local webserver的方式在写和调试,但是最近越来越觉得苦手,还是用IDE来调方便些,于是就配了下xdebug,记录一下备忘。 phpstorm基本上没啥好配的,直接在settings下的language中选中Php,然后选择好PHP的目录就可以了,它会自动检测解释器和调试器及其版本,当然调试器要先配置好。 配置xdebug: 先下载好php_xdebug-2.2.5-5.6-vc11-x86_64.dll,这个要和你的PHPSTORM版本相匹配,我的是phpstorm 8.02的。 然后放置好之后在PHP.INI文件中添加: [xdebug] zend_extension="D:/php5.6/ext/php_xdebug-2.3.1-5.6-vc11-x86_64.dll" //这里改成你自己的XDEBUG路径 xdebug.remote_enable=On xdebug.remote_handle=dbgp xdebug.remot_host=localhost xdbug.remote_port=9000 xdebug.idekey=PHPSTROM 最后实际调试,shift+F9下断点。 来源: https://www.cnblogs.com/debugzer0/p/4897074.html