xdebug

xdebug breakpoints work but step over does not

ε祈祈猫儿з 提交于 2019-12-17 16:49:13
问题 I have installed Xampp on Windows (Well actually both xampp and wamp but both have the same problem), and enabled xdebug. I have installed the latest eclipse for php with pdt included. The breakpoints are working correctly however if I press f6 or f5 the current line does not get updated, the variables change as if I had stepped to the following line but the highlighted line remains the same. Any ideas? I attach some screenshots to make it easier to understand: Breakpoint works: I press f6,

While I am debugging PHP Script in Eclipse, it doesn't load mysql extension

北城余情 提交于 2019-12-17 16:49:07
问题 I have installed Eclipse and xDebug on Ubuntu 10.10. When I debug some php file as a page, that works fine. When I try to debug it as a script, I give the message that mysql extension is not loaded. I set the following options for PHP executable: Executable path: /usr/bin/php PHP ini file: /etc/php5/apache2/php.ini SAPI type: CLI PHP debugger: XDebug I wrote the following script: test.php <?php $ext = get_loaded_extensions(); print_r($ext); ?> When I put in command line /usr/bin/php test.php

can't install XDEBUG on windows?

感情迁移 提交于 2019-12-17 16:28:40
问题 my php version is PHP Version 5.3.6 . Xdebug setting in php.ini: [Xdebug] zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll" xdebug.remote_enable=1 ;IP xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.auto_trace = On xdebug.show_exception_trace = On xdebug.remote_autostart = On xdebug.collect_vars = On xdebug.collect_return = On xdebug.collect_params = On i have installed PHP 5.3 VC6 (32 bit)/ PHP 5.3 VC9 (32 bit). they are both failed. when typed "php -

How do I examine defined constants in PHP?

巧了我就是萌 提交于 2019-12-17 16:27:22
问题 I'm stepping through the source code of CodeIgniter with Xdebug in NetBeans and I'm looking for a way to see defined constants as they are defined. If it's not possible, are there any other ways to display all defined constants? 回答1: Take a look at the get_defined_constants function. It will return an array of all the defined constants in the code up to the point of the function call. You can then use print_r to print out the array. 回答2: This kind of practice I use is quite decent as it shows

Netbeans and Xdebug in Linux

假装没事ソ 提交于 2019-12-17 15:46:28
问题 I have installed Xdebug, and I can confirm from phpinfo() that it is correctly installed. I have taken all the steps given in all of the sites that come up with I google "netbeans xdebug install, etc". It still does not work in Netbeans. Is there any advice that someone can offer? Here is my php.ini debug section... [xdebug] zend_extension = /usr/lib/php5/20090626/xdebug.so xdebug.remote_enable = 1 xdebug.remote_mode = "req" xdebug.remote_handler = dbgp xdebug.remote_host = 127.0.0.1 xdebug

Check if xdebug is working

拟墨画扇 提交于 2019-12-17 15:29:21
问题 Without installing a texteditor or an IDE, is it possible to test if xdebug is working, i.e. if it can debug php code? The only part xdebug comes up in phpinfo() is the following: Additional .ini files parsed /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/xdebug.ini It is not mentioned in the phpinfo() anywhere else. 回答1: Without actually doing some debugging, I guess

How to trigger XDebug profiler for a command line PHP script?

和自甴很熟 提交于 2019-12-17 14:59:07
问题 XDebug offers the configuration directive "xdebug.profiler_enable_trigger" that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via HTTP. This is handy if you don't want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuration. Is there a way to achieve the same behavior for command line PHP programs? I tried to pass the "XDEBUG_PROFILE" as a command line argument but it didn't

Will enabling XDebug on a production server make PHP slower?

自作多情 提交于 2019-12-17 06:13:09
问题 The title pretty much says it all...is it a bad idea ? I'd like to have the enhanced debug messages that XDebug provides on the server. [edit] Just to make things clear. I'm aware there are security risks involved. Perhaps I should complement my question and give more precise reasons why I would want to do this. Our production server hosts a testing platform also. Sometimes we use it to test things on a environment as close to production as possible. The main thing I'm looking for is using

netbeans shows “Waiting For Connection (netbeans-xdebug)”

谁都会走 提交于 2019-12-17 04:15:16
问题 need help to configure xdebug, for debugging projects from IDE netbeans. These are the features of my components: XAMPP 1.8.2 PHP: 5.4.16 netbeans: 7.3.1 Apache: 2.4.4 (Win32) this is the final part of my php.ini file: [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-nts.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

PHP断点调试工具Xdebug的安装

有些话、适合烂在心里 提交于 2019-12-17 04:14:25
Xdebug是一个PHP程序调试器,可以用来跟踪,调试和分析PHP程序的运行状况。其实调试PHP还有其他工具比如Zend Debugger,但zend官方不是免费发布的,后来更新为zend Server也是收费版。而Xdebug是完全免费的并且功能也不差。其实xdebug可以看做PHP的扩展,如果环境中没有集成需要先在官网下载然后安装,下载地址:https://xdebug.org/download.php。下面说一下安装方式: 1.在windows下的安装方式,在windows安装时下载需要注意除了下载的扩展和PHP版本一致外还应该查看一下PHP是TS(Thread-Safety)即线程安全还是NTS(None-Thread Safe)即非线程安全,可以通过查看phpinfo内容确定是哪一种。找到phpinfo中的PHP Extension Build这一项,如下图: 下载完成后将dll文件放到php的安装目录下,为了统一可以放到ext目录下,也可以重命名一下,然后再php.ini中加入如下代码(具体可根据调试场景进行修改) [Xdebug] zend_extension ="扩展的绝对路径";zend_extension ="D:\phpStudy\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug-2.7.0alpha1-7.1