[xdebug-general] Xdebug does not break

From: Rune V. Sjøen <rvsjoen[@]gmail.com>
Date: Fri, 5 Mar 2010 22:17:57 +0100

Ok, so I am having problems getting Xdebug working, I have tried both XAMPP
and WAMP environments,
This is 64-bit Windows 7, but I am running 32-bit apps.

Whenever I load run.php, the output from var_dump is prettified (I suppose
by Xdebug) but it never breaks,
not even when explicitly when defining a break point using xdebug_break();

I tried using both eclipse and XDebugClient as a client interface.

I tried the following versions of Xdebug

php_xdebug.dll (bundled with XAMPP)

php_xdebug-2.0.5-5.2.dll
php_xdebug-2.0.5-5.3-vc6.dll <-- I figure this is the one since I have php
5.3.0 compiled with VC6

php_xdebug-2.0.5-5.3-vc9-x86_64.dll
php_xdebug-2.1.0beta3-5.3-vc6.dll
php_xdebug-2.1.0beta3-5.3-vc9-x86_64.dll
php_xdebug-2.1.0beta3-5.3-vc9.dll

------------------ run.php -----------------
<?php

xdebug_break();
echo "Hello World!";
$myvar = "FOOBAR";
var_dump($myvar);

?>

------------------ php.ini -------------------
[XDebug]
zend_extension="C:\wamp\bin\php\php5.3.0\ext\php_xdebug-2.0.5-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_autostart=true
xdebug.remote_host=localhost
xdebug.remote_port=10000
xdebug.remote_handler=dbgp
xdebug.remote_log="c:\xdebug.log"
xdebug.remote_mode = "req"
xdebug.extended_info = 1

----------------- xdebug.log -------------

Log opened at 2010-03-05 21:11:33
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" fileuri="file:///F:/Websites/test/run.php"
language="PHP" protocol_version="1.0" appid="12124"
idekey="RAINBOW$"><engine
version="2.0.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2009 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="" transaction_id="" status="break"
reason="ok"><xdebug:message filename="file:///F:/Websites/test/run.php"
lineno="3"></xdebug:message></response>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2010-03-05 21:11:33

----------------- phpinfo() ----------------
PHP Version 5.3.0

System Windows NT RAINBOW 6.1 build 7600 ((null)) i586
Build Date Jun 29 2009 21:23:30
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build"
"--disable-isapi" "--enable-debug-pack"
"--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
"--with-enchant=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\wamp\bin\apache\Apache2.2.11\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,TS,VC6
PHP Extension Build API20090626,TS,VC6
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams php, file, glob, data, http, ftp, zip,
compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*

xdebug
xdebug support enabled
Version 2.0.5

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $

Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
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.idekey RAINBOW$ no value
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 100 100
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 On On
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host localhost localhost
xdebug.remote_log c:\xdebug.log c:\xdebug.log
xdebug.remote_mode req req
xdebug.remote_port 10000 10000
xdebug.show_exception_trace Off Off
xdebug.show_local_vars Off Off
xdebug.show_mem_delta 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

Regards,
Rune V. Sjoen
Received on Fri Mar 05 2010 - 21:18:17 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST