Matthew Mikitka | 10 Aug 22:43 2012
Picon

PHP Warning: The remote debug handler 'DBGp' is not supported

When attempting to debug any PHP file, I observe the following error
message in /var/log/apache2/error.log:

  [error] [client 127.0.0.1] PHP Warning:  The remote debug handler
'DBGp' is not supported. in Unknown on line 0

I ran the following diagnostic checks, all of which passed:

 1) Installed the debugclient tool from Xdebug (see
http://www.xdebug.org/docs/install). I was able to establish a
connection.

 2) The Xdebug tailored installation instructions (see
http://xdebug.org/wizard.php) indicate that there is no problem
with my configuration

I am using the latest Ubuntu, PHP 5.3 and Xdebug versions:

OS: Ubuntu 12.04
PHP version: 5.3.10 (1ubuntu3.2)
Xdebug version: 2.2.1

Here are the Xdebug settings from phpinfo()

xdebug
xdebug support	enabled
Version 	2.2.1
IDE Key 	1

Supported protocols	Revision
(Continue reading)

Damjan Cvetko | 10 Aug 14:07 2012

max_depth

Hi

 

I'm implementing a feature in N++ DBGP plugin, to load the context variable tree and other inspection trees on demand. So each variable that has children, does not have all loaded, but when user presses the [+], the next level is loaded from the engine. The max_depth is a bit confusing. If I set it to 0 and do context_get, I will get a a property element for each entry in the context. Then if I want to get children from one of those elements, I will need to do property_get with fullname. However because max_depth is set to 0, I will get no children.

If I do the same with max_depth 1 I will get 2 levels of property elements with the initial context_get command (more data than I want).

 

So if I want to make sure that I transfere as little information as needed, I would need to set max_depth to 0 before getting context and then set it to 1 when digging down the tree.

 

Is there any way arround this? Seems a bit of overheat to be sending these extra commands all the time.

 

Best regards,

-Zobo

Mihamina Rakotomandimby | 19 Jul 18:24 2012

xdebug 2.2: error vs exception

Hi all,

I have xdebug 2.2 from http://goo.gl/LlbOj and formerly had also the 
CentOS xdebug (2.1) rpm.

Configured to "jit", xdebug connects to the client when on exception.

But when a function goes on error, it doesnt.

Concrete example: In a Drupal installation there is something using GD 
call to resize an image and if the function does not find the $file, it 
does not trigger debugging. Is the trigger restricted to exceptions?

--

-- 
RMA.

Mark Slade | 18 Jul 03:11 2012
Picon

Having segfault problems, not sure where to diagnose.

Hi all,


I'm new to Xdebug and trying to get started.  I it successfully installed and configured; I'm able to start debugging from my remote IDE and step through code.  But I keep hitting segfaults and I'm not sure why, nor am I sure the best direction investigate.  Guidance would be much appreciated.

xdebug 2.2.0
apache 2.2.15
PHP 5.4.3
NetBeans 7.1.2

The script runs fine if I run it without debugging (by removing xdebug from php.ini or just not starting a session).  It doesn't generate segfaults, exceptions, errors, warnings, or notices, and it doesn't take abnormally long.

If I start debugging and step through, it reaches a certain line where NetBeans disconnects indicating a "Socket Exception", and I see a segfault in Apache's error_log.  This always happens on a line before the line that produces output.  None the less, I do end up seeing output and it's identical to when this doesn't happen, as if the script is completing after xdebug dies and then the process is segfaulting.  The remote log (http://pastebin.com/9VUY2AcJ) seems like xdebug is just crashing.  That is the end of the log after the line that causes problems.  The conversation is stopping right after context_get, note the lack of a closing "-->" to the command, and then the log re-opens.

If I load the Apache coredump into gdb and backtrace (http://pastebin.com/w21zXnH8) it shows xdebug_var_export_xml_node at the top of the stack.  I'm not a gdb pro so I'm not sure where to go from here.  I can't provide the code that's triggering this because it's a sizeable codebase and proprietary.

I tried running the script itself in gdb with debugclient on the other end, but I'm apparently not doing something right.  When I first connect with debugclient I run "step_over -i XXXX" and it seems to just run the entire script and produce output.  In this case, no segfault / error.  The raw response I get from debugclient includes status="stopping" reason="ok".

Any advice?  Can I provide more information that might be useful?

Mark
Kristian Iversen | 29 Jun 20:31 2012
Picon

security regarding remote_connect_back

Hi

I am using Xdebug v2.1.3 on:
  Apache/2.2.16
  PHP Version 5.3.3-7+squeeze7
  Linux 2.6.32-5-686, Debian

We are several people who are using the debugger, and have therefore 
xdebug.remote_connect_back enabled.
I think however that this makes a security risk since everybody can 
connect to the debugger and retrieve (maybe) useful information.

Is there a way to restrict access to whom can connect to Xdebug without 
restricting it to specific IP addresses?

Best regards
Kristian Iversen

James Benstead | 29 Jun 15:32 2012
Picon

Problem installing XDebug via PECL

I'm trying to install XDebug via PECL but can't get it to work. Here are the last few lines of terminal output. I'd be really grateful if someone could help me out.


creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /Applications/XAMPP/xamppfiles/temp/pear/temp/pear-build-rootPNFwPd/xdebug-2.2.0/libtool --mode=compile cc  -I. -I/Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/temp/pear/temp/pear-build-rootPNFwPd/xdebug-2.2.0/include -I/Applications/XAMPP/xamppfiles/temp/pear/temp/pear-build-rootPNFwPd/xdebug-2.2.0/main -I/Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1 -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/ext -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/ext/date/lib -I/Applications/XAMPP/xamppfiles/include  -DHAVE_CONFIG_H  -g -O2   -c /Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug/xdebug.c -o xdebug.lo
mkdir .libs
 cc -I. -I/Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/temp/pear/temp/pear-build-rootPNFwPd/xdebug-2.2.0/include -I/Applications/XAMPP/xamppfiles/temp/pear/temp/pear-build-rootPNFwPd/xdebug-2.2.0/main -I/Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1 -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/ext -I/Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/ext/date/lib -I/Applications/XAMPP/xamppfiles/include -DHAVE_CONFIG_H -g -O2 -c /Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug/xdebug.c  -fno-common -DPIC -o .libs/xdebug.o
/Applications/XAMPP/xamppfiles/temp/pear/temp/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found
#include "php.h"
         ^
1 error generated.
make: *** [xdebug.lo] Error 1
ERROR: `make' failed
Werner Flamme | 25 Jun 14:13 2012
Picon

excluding code or variables possible?


Hi,

for a distributed development xdebug seems to be too good :-). It
looks at every single line of code and at every variable...

In this environment it would be nice, if xdebug would not look at some
functions and at some variables, because - if it does - every
developer can see the secret passwords for the databese connections...

Is there any possibility to tell xdebug *not* to show (or analyse) the
content of certain functions and/or variables? For security reasons,
this should be configured on the server side.

Thanks in advance for reading the question :-)

Regards,
Werner

--

-- 
1 | 21 Jun 15:08 2012
Picon

xdebug

Hello,

I working with webMatrix version 1., Php 5.3, IIS 7 win7 64 bits.

 

I try to add the Xdebug  and It's not working . I don't see error message on the browser when there is an error (like division in 0).

I send to you the ini file and the results of the php –m.

Please help

Thanks Veronic

[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

[Zend Modules]
Xdebug

Attachment (php.ini): application/octet-stream, 69 KiB
sandstorm140@gmail.com | 16 Jun 15:02 2012
Picon

Issue with remote debugging

Greetings,

I have two computers on a network, one of which has wamp 2.2e installed.
I am using phpDesigner 8 and have also tested with WeBuilder 2011. 
Everything works perfectly on the server computer wamp is installed on, 
however when I try to debug a script on another networked computer, 
nothing happens. The program just sits there not entering debug mode. I 
have all firewalls disabled and tried using another port than 9000.

On pastebin.com, I have pasted some more information that may be of use:

phpinfo(): http://pastebin.com/yzeid3Bi
php.ini: http://pastebin.com/1UXWpEYf

Thank you ever so kindly!

  -Peter

phpnewnew | 3 Jun 01:36 2012
Picon

thank for u help.

Hi:
I has a question ask to u.
when i use xdebug_get_code_coverage and result some code like 1 2 -1 -2 0...
I want to know what is the significance of these figures.
I know 1 is to perform.
Thx for u help.
My English is so poor. Sorry

phpnewnew

Kiss Gergő | 2 Jun 23:44 2012
Picon

Xdebug output problem

Dear Sir or Madam,

I would have a question about xdebug, because I haven't find answer on it. I use XAMPP with PHP 5.3.8 on Windows 7 32bit operation system. I installed Netbeans 7.1.2 beacause I would like to debug my PHP programs with it and the xdebug. When I put breakpoints in my code it stops well and I see the changes of values of the variables while I debugging, so it is nearly perfect, but I can't see the output unless the code runs to the end. 

I wrote a sample code:

echo '1';
echo '2';
echo '3';   
phpinfo();
echo '4';
echo '5';

It is interesting because, the echo 1-2-3 don't appear in my browser or on the debugger output, but when I step through the phpinfo() function, the 1,2,3 and the phpinfo functions output is written into the browser and the output panel too. But after this the echo 4 and 5 don't written out until the debugging ends.

I tested my phpinfo() output on your webpage which checks if the settings in php.ini is correct or not and it tells everything is OK.

I know another one person who has the same problem.

I hope you can help me.

Thank you,

Yours faithfully,

Gergő Kiss


Gmane