Raymond Irving | 19 Aug 16:41 2012
Picon

Feature request for remote_connect_back

Hello,


I've posted this  request sometime ago....

How about making xdebug support a comma delimited list of ips for remote_connect_back? This could be done my checking to see if $_SERVER['REMOTE_ADDR']  is within the list of ips. Then it could use the $_SERVER['REMOTE_ADDR']  to make a connection. The same could be done for remote_host if  $_SERVER['REMOTE_ADDR']  existing in the remote_host list.

xdebug.remote_connect_back =  192.168.1.1, 192.168.1.2, 10.100.40.10

It would be it so much easier to setup xdebug for a group of developers rather than having to setup a proxy server. You could even make design to to support partial IP blocks:

xdebug.remote_connect_back =  192.168.1., 194.100., 10.100.

XDebug could then check if the remote IP begins with any of the strings listed above.


IMO, it would make XDebug easier to configure for a group of developers.


__
Raymond
Piotr Kurek | 16 Aug 15:02 2012
Picon

how to install xdebug extension

Hey,
I'm writing to you beacause i cant install your extension, and as it is quite helpful in unit testing i would be gratefull for your help. I'm using postgres database. What i tried is :

zend_extension_ts="C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\modules\php_xdebug-2.2.1-5.3-vc9.dll"    as your wizzard suggested me, and put the file i downloaded in that directory.
Also i have found info like this:
"put in apache\modules\your_xdebug_file and edit php ini like this:"
; Module Settings ;
[xdebug]
xdebug.remote_host="localhost"
xdebug.remote_enable=1
xdebug.remote_port=8080
xdebug.remote_handler="dbgp"

But still have no xdebug.
--
Thanks, 
Piotr Kurek
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
DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $

Directive	Local Value	Master Value
xdebug.auto_trace	Off	Off
xdebug.cli_color	0	0
xdebug.collect_assignments	Off	Off
xdebug.collect_includes	On	On
xdebug.collect_params	0	0
xdebug.collect_return	Off	Off
xdebug.collect_vars	Off	Off
xdebug.coverage_enable	On	On
xdebug.default_enable	On	On
xdebug.dump.COOKIE	no value	no value
xdebug.dump.ENV	no value	no value
xdebug.dump.FILES	no value	no value
xdebug.dump.GET	no value	no value
xdebug.dump.POST	no value	no value
xdebug.dump.REQUEST	no value	no value
xdebug.dump.SERVER	no value	no value
xdebug.dump.SESSION	no value	no value
xdebug.dump_globals	On	On
xdebug.dump_once	On	On
xdebug.dump_undefined	Off	Off
xdebug.extended_info	On	On
xdebug.file_link_format	no value	no value
xdebug.idekey	netbeans-xdebug	netbeans-xdebug
xdebug.max_nesting_level	100	100
xdebug.overload_var_dump	On	On
xdebug.profiler_aggregate	Off	Off
xdebug.profiler_append	Off	Off
xdebug.profiler_enable	Off	Off
xdebug.profiler_enable_trigger	Off	Off
xdebug.profiler_output_dir	/tmp	/tmp
xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p
xdebug.remote_autostart	Off	Off
xdebug.remote_connect_back	Off	Off
xdebug.remote_cookie_expire_time	3600	3600
xdebug.remote_enable	On	On
xdebug.remote_handler	DBGp	DBGp
xdebug.remote_host	localhost	localhost
xdebug.remote_log	/var/log/apache2/xdebug.log	/var/log/apache2/xdebug.log
xdebug.remote_mode	req	req
xdebug.remote_port	9000	9000
xdebug.scream	Off	Off
xdebug.show_exception_trace	Off	Off
xdebug.show_local_vars	Off	Off
xdebug.show_mem_delta	Off	Off
xdebug.trace_enable_trigger	Off	Off
xdebug.trace_format	0	0
xdebug.trace_options	0	0
xdebug.trace_output_dir	/tmp	/tmp
xdebug.trace_output_name	trace.%c	trace.%c
xdebug.var_display_max_children	128	128
xdebug.var_display_max_data	512	512
xdebug.var_display_max_depth	3	3

Thank you for your help,
matt

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


Gmane