xdebug

Debugging Laravel application on VSCode

旧街凉风 提交于 2019-12-23 03:36:16
问题 Has anyone successfully configured VSCode to debug Laravel-based website? After having followed numerous articles and tutorials, I have made it to the point where I can ask VSCode to "Listen to XDEBUG", but I haven't been able to do normal VS-style debugging where I could just hit F5 to launch current the website in my favorite browser and it would break into VSCode when it hit a breakpoint, just like we do in full Visual Studio or Eclipse. I have following things correctly setup on my

Waiting for connection(netbeans-xDebug)-php-XAMPP

假如想象 提交于 2019-12-23 02:49:12
问题 I tried to use netbeans to debug php program. And the xdebug is not working. What I have tried is Go to http://xdebug.org/wizard.php to analyse my phpinfo() . I downloaded php_xdebug-2.4.0rc2-5.6-vc11.dll and put it into C:\xampp\php\ext I also modified php.ini(I am sure it is the correct file) like zend_extension = "C:\xampp\php\ext\php_xdebug-2.4.0rc2-5.6-vc11.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp

xDebug seems OK installed, but not connecting with NetBeans

◇◆丶佛笑我妖孽 提交于 2019-12-22 17:54:57
问题 I have now tried for hours getting xDebug (2.0.5 compiled from source) to work on my MacBook OS X with NetBeans 6.8. I have installed MAMP and am running a small PHP (5.2) test program with it, no problem. But when I try to debug I get this text in Netbeans: "Waiting for connection (netbeans-xdebug)" and nothing more happens. Netbeans is configured for Debugger Port 9000. No Zend Optimization in MAMP. I have followed this: http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html

全面解读php-引用变量(&)

谁都会走 提交于 2019-12-22 12:57:20
本文讲述引用传值的核心原理,看完即可扫清一切和引用传值相关的内容,不会了记得画图。 一、memory_get_usage的使用 传值赋值 // 定义一个变量 $a = range(0, 10000); //memory_get_usage() 可以查看PHP内存使用量 var_dump(memory_get_usage()); // int(989778) // 定义变量b,将a变量的值赋值给b $b = $a; var_dump(memory_get_usage()); // int(989764) // 对a进行修改,只有发生了COW机制的才会重新开辟一块儿存储空间 // COW机制: Copy-On-Write $a = range(0, 10000); var_dump(memory_get_usage()); //int(1855643) 原理说明: 1、定义一个变量 $a=range(0,1000); ; 2、 $b = $a; 3、对a进行修改 $a = range(0, 10000) COW机制 PHP写时复制机制(Copy-on-Write,也缩写为COW) 顾名思义,就是在写入时才真正复制一份内存进行修改。 COW最早应用在Unix系统中对线程与内存使用的优化,后面广泛的被使用在各种编程语言中,如C++的STL等。 在PHP内核中,COW也是主要的内存优化手段。

Homestead 2 xdebug doesn't work

前提是你 提交于 2019-12-22 08:08:33
问题 I have a Homestead vagrant VM setup. Xdebug is all setup for remote debugging out of the box. I can see this in here /etc/php5/fpm/conf.d/20-xdebug.ini and by doing a php -i | grep 'xdebug' I've setup a breakpoint in my default index.php and clicked the 'start listening for PHP debug connections' in my IDE PHPstorm. I have installed xdebug helper for chrome and turned it on, also setting my IDE string to PHPstorm in it's settings. I've tried setting different ports in both my IDE and xdebug

Apache stuck with working after Xdebug was installed. Ioncube loader error

六月ゝ 毕业季﹏ 提交于 2019-12-22 07:54:10
问题 I have a local installation of Ubuntu Server 12.10 via VirtualBox for my PHP programming purposes. Recently I've installed the Xdebug in this way: sudo apt-get install php5-xdebug Then added 'xdebug' path to my /etc/php5/apache2/php.ini: zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so Then I restarted apache. And, it got stuck. My local sites are not loading. The 'php -v' (as well as 'php -m') says: PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini

How to get __debugInfo to work with XDebug?

时光怂恿深爱的人放手 提交于 2019-12-22 07:04:01
问题 It seems __debugInfo does not work when xdebug overwrites var_dump . Is there anyway to make this work? I am using PHP 5.6.0 and XDebug 2.2.5 回答1: This is now fixed in Xdebug - soon to be released: https://github.com/xdebug/xdebug/commit/14159486d8d77732b5ae193ca9431bae80c94074 来源: https://stackoverflow.com/questions/26835450/how-to-get-debuginfo-to-work-with-xdebug

Xdebug hiding dump information?

◇◆丶佛笑我妖孽 提交于 2019-12-22 03:49:12
问题 I am using xdebug with my php methods such as var_dump() are beautiful but not showing full information instead the dump ends with three dots ... which might be the sign of continuation followed by (length=87749) How should I tell xdebug to show full dump ?? Thanks 回答1: Xdebug truncates the output of (at least) strings and arrays, to avoid it getting to big. The amout of data that's printed can be configured using these directives : xdebug.var_display_max_children xdebug.var_display_max_data

How do I set up PHP profiling on Eclipse?

一笑奈何 提交于 2019-12-21 22:29:54
问题 I have set up Eclipse PDT on Galileo. I'm able to run and debug PHP sites that are set up on XAMPP. The thing is, I want to profile one of the sites, but cannot for the life of me figure out how to set this up. There is a profiling menu when I right-click the PHP project, but no indication of how to proceed from there. BTW I'm using Xdebug as the debug engine. 回答1: I came across the solution to my real problem: Getting Xdebug to output profiling files. As @"ZZ Coder" has mentioned, you don't

xdebug.so: undefined symbol: zend_ce_error

不想你离开。 提交于 2019-12-21 20:28:58
问题 I need debug old php version: PHP 5.6.22 (cli) (built: Jun 29 2016 14:26:09) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies On Ubuntu: Ubuntu 16.04 LTS I compiled appropriate PHP, and checked out xdebug from git repository: git://github.com/xdebug/xdebug.git I tried different versions, but just master seems compiling. In my errors I have: Failed loading /usr/share/php53/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: /usr/share