Slow debugging with zend debugger

Please help me to improve the speed of debugging. I made some test comparing to another IDE and on virtual machine. I'm running on Windows 7 and Zend Server with PHP 5.3 and separate MySQL installation. I used magento project with many customizations and set breakpoint somewhere in layered navigation template. These are results:

Firefox, zend studio toolbar 2.6, Zend Studio 10: 10 seconds.
Firefox, zend studio toolbar 2.6, PHPStorm 6: 3 min 28 sec (same result when using Chrome with bookmarklets).

This is a very significant difference. Same results I get when test on same hardware computers with same set up. Difference between Zend Studio and PHPStorm is so huge.
Also I have virtual machine with ubuntu 12.04, MySQL, LAMP and PHPStorm 6. And time of reaching that breakpoint is around 10 seconds.

At home I have powerfull computer with Mac OS X where debugging of that project in PHPStorm takes a few seconds, and less powerfull with Windows 7 with same setup I describe above where debugging takes 10-15 seconds.

So please help to find the reason... (and sorry for my English).

------------------
debugger config http://pastie.org/7110942

3 comments
Comment actions Permalink

Yes, the same problem.
I have two machines with configuration like that and debugging sometimes turns to sorrows and makes me cry.
I start thinking about the futility of the existence and it makes me come to despair, waiting until it reaches that breakpoint

0
Comment actions Permalink

Yes, I have had moments, when the debugger reached the desired brekpoint more than 40 minutes. At the same time on the same machine at Zend Studio to the same brekponit for a few seconds. What is the problem? It is not very desirable to change to Zend Studio, but Zend Studio has significant advantages in relation to debuggers.

0
Comment actions Permalink

Please look at the screen captures at the bottom of this message:

I've been using ZendDebugger  for several years, but I had nothing but problems with ZendDebugger in phpstorm, so I switched to xdebug, and I am very happy that I made the switch.

You can download the xdebug.so binary from :

Download Site : http://downloads.activestate.com/Komodo/releases/8.0.1/remotedebugging/

Select the one for your platform :

[   ] Komodo-PHPRemoteDebugging-8.0.1-78128-linux-x86.tar.gz       26-Mar-2013 15:12  1.3M  
[   ] Komodo-PHPRemoteDebugging-8.0.1-78128-linux-x86_64.tar.gz    26-Mar-2013 15:12  1.4M  
[   ] Komodo-PHPRemoteDebugging-8.0.1-78128-macosx.tar.gz          26-Mar-2013 15:12  1.3M  
[   ] Komodo-PHPRemoteDebugging-8.0.1-78128-win32-x86.zip          26-Mar-2013 15:12  1.0M  



Here's what I have in php.ini

; -------------------------------------------
; Disable the ZendDebugger stuff
; -------------------------------------------
; zend_extension=/opt/debuggers/ZendDebugger.so

; zend_debugger.allow_hosts=127.0.0.1/32,10.0.0.0/8,192.168.1.1/24,172.16.0.0/12
; zend_debugger.expose_remotely=allowed_hosts
; zend_debugger.expose_remotely=always
; zend_debugger.httpd_uid=70

; -------------------------------------------
; Enable the xcode stuff
; -------------------------------------------
zend_extension=/opt/debuggers/xdebug.so
xdebug.idekey = PHPSTORM
xdebug.remote_autostart = On
xdebug.remote_connect_back = On
xdebug.remote_cookie_expire_time = 3600
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = /opt/logs/xdebug.log
xdebug.remote_mode = req
xdebug.remote_port = 9000


# -------------------------------------------
# This is for the Mac OSX, I don't know anything about windows
# Terminal Commands to create directories if they do not already exist
# -------------------------------------------


$ sudo mkdir -p /opt/debuggers
$ sudo mkdir -p /opt/logs
$ open /opt

# -------------------------------------------
# move the download to the /opt directory
# -------------------------------------------


$ sudo mv ~/Downloads/Komodo-PHPRemoteDebugging-8.0.1-78128-macosx /opt

# -------------------------------------------
# create /opt/debuggers/xdebug.so symbolic link to the real xdebug.so
# make sure you have the correct xcode.so version to use with your php version
# -------------------------------------------


$ sudo ln -s /opt/Komodo-PHPRemoteDebugging-8.0.1-78128-macosx/5.3/xdebug.so /opt/debuggers/xdebug.so


# -------------------------------------------
# Directory Structure
# -------------------------------------------


/opt


/opt/debuggers

/opt/debuggers/xdebug.so       # this is the symlink above

/opt/logs
/opt/logs/xdebug.log                # the log will be created by php



-
# Restart your computer, and give it a go...


-
Best of luck,
-


Bill Hernandez
Plano, Texas


Attachment(s):
PhpStorm_php_storm_052.png
PhpStorm_php_storm_053.png
0

Please sign in to leave a comment.