xdebug

VS code编辑器安装 php7.2 NTS 版本 Xdebug

此生再无相见时 提交于 2019-12-02 05:50:54
本文使用的是 phpstudy 一键安装包(windows32位) php 版本是 php7.2 NTS 1、在 phpstudy 面板中开启 phpdebug 扩展 // 其他选项菜单-> php 扩展与设置-> php 扩展 2、官方下载 Xdebug // 注意必须要安装和自己使用 php 版本同版本的 Xdebug https://xdebug.org/download.php 3、把 Xdebug 的 dll 放到 php 相关目录下面 4、在 php 配置文件 php.ini 的最后加上以下代码 [XDebug] xdebug.profiler_output_dir="I:\phpStudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="I:\phpStudy\PHPTutorial\tmp\xdebug" zend_extension="I:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.7.0beta1-7.2-vc15-nts.dll" xdebug.remote_enable = 1 xdebug.remote_autostart = 1 5、检查 php 扩展中是否已开启 Xdebug // 查看 php 扩展(需要将 php.exe 添加到

Xdebug of Laravel Dusk in Netbeans on Homestead

白昼怎懂夜的黑 提交于 2019-12-02 05:49:46
问题 In Laravel Homestead, I've been able to use Xdebug for unit tests, feature tests, poking around in the browser, etc. But it hangs when I try to use Xdebug for Dusk (tests in tests/Browser folder). I thought these questions might help, but I still haven't gotten it working: debugging laravel artisan from PHPStorm with homestead Xdebug laravel artisan commands I've tried various approaches, including: export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_connect_back=0 remote_host=10.0.2.2" php

xdebug does not activate the breakpoint

天涯浪子 提交于 2019-12-02 05:16:08
I am using Netbeans to do my project(codeigniter) and my xdebug is configured in php ini. The following are the setting: 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 = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_autostart = 1 xdebug.idekey = "netbeans-xdebug" xdebug.remote_log="C:\xampp\tmp\xdebug.log" xdebug.remote_port=9001 Php info shows

xdebug php 调试器的安装和使用

*爱你&永不变心* 提交于 2019-12-02 04:56:14
简介 Xdebug是一个开源的php调试器,以php模块的形式加载并被使用。 功能比较 Xhprof php性能测试工具用法小结 跟xdebug相比,线上环境的话,xdebug消耗较大,配置也不够灵活。所以比较适合本地开发环境使用。 准备 下载 https://xdebug.org/download.php xdebug-2.4.0.tgz 百度云下载 安装 pecl安装或者下载源码安装 /usr/local/bin/pecl install xdebug 或者 wget https://pecl.php.net/get/xdebug-2.4.0.tgz tar xzf xdebug-2.4.0.tgz cd xdebug-2.4.0 /usr/local/bin/phpize ./configure --with-php-config=/usr/local/bin/php-config make && make install 增加以下代码到php.ini文件中 [xdebug] zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so 重启 php service php-fpm reload Xdebug扩展安装成功 使用 扩展阅读 xdebug.docs 来源:

php

守給你的承諾、 提交于 2019-12-02 04:51:24
php 中的Etag <?php $str = "Barret Lee"; $Etag = md5($str); if(array_key_exists('HTTP_IF_NONE_MATCH', $_SERVER) and $_SERVER['HTTP_IF_NONE_MATCH'] == $Etag){ header("HTTP/1.1 304 Not Modified"); exit(); } else { header("Etag:" . $Etag); echo $str; } ?> 关闭http链接 header("content-length:" . $size); header("Connection: Close"); 正则中文截断乱码 $value['content'] = preg_replace("/([\n\t\s\r]| )*/u", "", $value['content']); url 下载文件 function downfile(){ $fileurl = $_GET['file']; $filePath=__DIR__."/template/app/dati/file/" .$fileurl; $fileName=$fileurl; $file = fopen($filePath, "r"); // 打开文件 // 输入文件标签 if (

How to change the colors of xdebug output?

百般思念 提交于 2019-12-02 03:53:48
The red and yellow standard colors of xdebug can hurt your eyes after a few hours. http://www.designified.com/blog/article/76/restyling-xdebug-output describes how to replace the style with javascript requiring jquery. I was looking for a more straight forward way and finally found one. The solution is the !important tag, it overrides the existing style values. Use the following css code to avoid eye cancer when using xdebug: .xdebug-error { font-size: 12px !important; width: 95% !important; margin: 0 auto 10px auto !important; border-color: #666 !important; background: #ddd !important; }

PHP Xdebug issue - date.timezone & session.save_path undefined

大兔子大兔子 提交于 2019-12-02 02:12:41
问题 After installing and enable xdebug date.timezone and session.save_path shows no value. If I disable the xdebug, everything works well. So, why above values becomes empty when I enable xdebug? Additional Information: xdebug version: 2.2.3 Php version: 5.5 OS: Ubuntu 14.04 回答1: I found the solution by myself. All the settings like date.timezone and session.save_path needs to be initialized before you define/enable xdebug. It is always better to load xdebug extension at the end of file(php.ini).

Xdebug of Laravel Dusk in Netbeans on Homestead

倖福魔咒の 提交于 2019-12-02 01:49:18
In Laravel Homestead, I've been able to use Xdebug for unit tests, feature tests, poking around in the browser, etc. But it hangs when I try to use Xdebug for Dusk (tests in tests/Browser folder). I thought these questions might help, but I still haven't gotten it working: debugging laravel artisan from PHPStorm with homestead Xdebug laravel artisan commands I've tried various approaches, including: export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_connect_back=0 remote_host=10.0.2.2" php artisan dusk and export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_host=10.0.2.2" php -dxdebug.remote

Xdebug breakpoints always work except when using @runTestsInSeparateProcesses?

风格不统一 提交于 2019-12-02 01:12:59
I finally got Xdebug working (including with breakpoints and the ability to "step over") for unit tests, feature tests, and for poking around in the browser. However, whenever I use @runTestsInSeparateProcesses because of this reason , Netbeans breakpoints no longer work. How can I use Xdebug breakpoints on tests that use @runTestsInSeparateProcesses ? I'm using Netbeans 8.2 on Windows 10 Version 1607 Build 14393.0. PHPUnit 5.7.21. I'm running Laravel 5.4 Homestead (which is Vagrant 1.9.5), so that means my server is Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-66-generic x86_64). You need to add the

XDebug调试

£可爱£侵袭症+ 提交于 2019-12-02 00:56:27
安装 访问 Xdebug 点击download 找到RELEASES,点击 custom installation instructions. 在白色框框内填入phpinfo()出来的源码 点击Analyse my phpinfo() output 然后下载 将下载好的文件放到php路径下ext文件的里面 配置php.ini [Xdebug] zend_extension = D:\ProgramSoft\phpstudy_pro\Extensions\php\php7.3.4nts\ext\php_xdebug-2.7.2-7.3-vc15-nts-x86_64.dll xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir ="D:\ProgramSoft\phpstudy_pro\tmp\xdebug" xdebug.trace_output_dir ="D:\ProgramSoft\phpstudy_pro\tmp\xdebug" xdebug.profiler_output_name = "cache.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote