Link to home
Create AccountLog in
Avatar of GE_Dave
GE_DaveFlag for United States of America

asked on

xDebug in UEStudio does not stop at Breakpoints

 I have WAMP running on my Windows PC, which is working fine.  I have downloaded and setup xDebug inside of UES.  xDebug seems to work OK in general, as it starts properly and will 'step' through a PHP script (index.php).
 The problem is that xDebug is ignoring the 'Breakpoints' that I have set.  The portion of the code I am debugging is several thousand lines of code into the website, so I have to have Breakpoints working.
Avatar of FirstSentinel
FirstSentinel
Flag of United States of America image

Try matching your Xdebug configuration as listed below:

[XDebug]
zend_extension_ts=./ext/php_xdebug.dll
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=d:/
xdebug.profiler_output_name=timestamp
xdebug.remote_enable=1
xdebug.remote_mode=req
xdebug.remote_autostart=0
xdebug.remote_port=9000
xdebug.remote_host=localhost 
xdebug.idekey=debug

Open in new window

I had to add several settings to my php.ini to get it working. Above is the resulting configuration. Also, I installed XDebug Helper Firefox addon to start debugging right from Firefox. Very convenient.
Avatar of GE_Dave

ASKER

I have finally received a response from IDE (UEStudio).  They tell me that there is a known problem with breakpoints when debugging PHP.  They say they will  have this fixed in a future update
Great News!    

The fix listed above is a work around until then.
Avatar of GE_Dave

ASKER

Sorry, but this did not work.  My problem is the same, although I have learned one more thing.  The Breakpoints works once for any php file, but then never again.

FYI

PHP Version 5.3.3
============
From *PHP.INI*
============
;Xdebug location
zend_extension = s:\wamp\bin\php\php5.3.3\ext\php_xdebug-2.1.0-5.3-vc6.dll

;Xdebug settings
xdebug.remote_enable=1
xdebug.remote_autostart=1

xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=s:/wamp
xdebug.profiler_output_name=timestamp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=localhost 
xdebug.idekey=debug

Open in new window

==============
From PHP Info()
==============
xdebug

xdebug support     enabled
Version     2.1.0

Supported protocols     Revision
DBGp - Common DeBuGger Protocol     $Revision: 1.145 $

Directive     Local Value     Master Value
xdebug.auto_trace     Off     Off
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.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     /no value/     /no value/
xdebug.manual_url     http://www.php.net     http://www.php.net
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     \     \
xdebug.profiler_output_name     cachegrind.out.%p     cachegrind.out.%p
xdebug.remote_autostart     On     On
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     /no value/     /no value/
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_format     0     0
xdebug.trace_options     0     0
xdebug.trace_output_dir     \     \
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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of belthorne
belthorne

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Good answer belthorne!
Avatar of GE_Dave

ASKER

Thank you for your responses.  However I have long since given up on UES in favor of Notepad++.  xDebug works fine in it.
Avatar of GE_Dave

ASKER

Solution came late