xdebug

转:[Server] 在 Windows 上安裝 PHP 5.3 開發環境

試著忘記壹切 提交于 2020-02-19 16:09:05
原文: http://www.jaceju.net/blog/archives/703/ 前陣子把部份測試主機環境升級到 PHP 5.3 來跑一些專案,整體上沒什麼狀況,所以我就決定讓公司的工作環境全部都轉移到 PHP 5.3 上了。 本文主要介紹如何在 Windows XP 上建置 Apache 2.2 + PHP 5.3 + MySQL 5.1 的開發環境,以供有興趣的朋友參考。 下載 Apache 2.2 Apache 2.2 可以在以下網址下載,因為我們多數網站都需要 SSL 支援,所以請記得抓取包含 OpenSSL 的版本。 http://httpd.apache.org/download.cgi (Win32 Binary including OpenSSL) 註: Apache 2.2 特色概觀 。 PHP 5.3 如果要讓 PHP 5.3 作為 Apache 2.2 的 module 來執行,那麼記得我們要抓取的是 VC6 x86 Thread Safe 的版本。 而因為我們是要手動安裝,所以需要下載的是沒有安裝檔的 PHP 5.3 zip package ,可從以下網址找到: http://windows.php.net/download/ (VC6 x86 Thread Safe) MySQL 5.1 MySQL 因為我們也要手動安裝

WSL+PHPSTORM+XDEBUG安装

北战南征 提交于 2020-02-13 21:23:13
新版phpstorm 自带WSL的PHP-CLI 很方便 旧版的需要ssh连很麻烦 zend_extension=xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9001 xdebug.idekey = "PHPSTORM" xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req" OK 了 可以用了。 自己记录一下免得忘了 来源: CSDN 作者: mrun 链接: https://blog.csdn.net/u013032345/article/details/104300429

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 debugger not stopping on lines in my new service-container marked with a break-point, but it does in controllers and included files

大憨熊 提交于 2020-02-06 08:05:07
问题 Using Symfony v2.8 and phpStorm v2016 3.3, I am currently able to run x-debugger on my controller files located in the .../src/AppBundle/Controller directory and the include/require files located in subdirectories located below the Controller directory. Recently, I added a Service directory to .../src/AppBundle , and create, configure, and successfully execute an example service container that I found in the Symfony documentation, but I couldn't run x-debugger from phpStorm on the code in new

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

breakpoint does not hit in phpstorm+xdebug

£可爱£侵袭症+ 提交于 2020-02-05 14:18:48
问题 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

Disable xDebug on phpMyAdmin

做~自己de王妃 提交于 2020-02-03 05:16:06
问题 I am using xDebug for a first time. Everything works well, but when I want to go on localhost/phpmyadmin it want to start debug (I don't have breakpoints here). How can I disable it only for phpmyadmin? My config: [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = on xdebug

PHP-php-fpm配置优化

本小妞迷上赌 提交于 2020-01-31 00:16:19
前言:   1.少安装PHP模块, 费内存   2.调高linux内核打开文件数量,可以使用这些命令(必须是root帐号)(我是修改/etc/rc.local,加入ulimit -SHn 51200的) echo `ulimit -HSn 65536` >> /etc/profile echo `ulimit -HSn 65536` >> /etc/rc.local source /etc/profile   如果`ulimit -n`数量依旧不多(即上面配置没生效)的话, 可以在 /etc/security/limits.conf 文件最后加上 * soft nofile 51200 * hard nofile 51200 1. 与Nginx使用Unix域Socket通信(Nginx和php-fpm在同一台服务器)    Unix域Socket因为不走网络,的确可以提高Nginx和php-fpm通信的性能,但在高并发时会不稳定 。   Nginx会频繁报错:connect() to unix:/dev/shm/php-fcgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream   可以通过下面两种方式提高稳定性:   1)调高nginx和php-fpm中的 backlog