Remote PHP Profiling?

Greetings,

I’ve been able to get remote PHP debugging to work in part, in that xdebug is actually sending a request back to Komodo IDE 10. The problem that I’m having right now is that when I change xdebug.remote_mode to profile, nothing seems to happen when I run my app.

http://docs.komodoide.com/Manual/profiling|documentation indicates that I need to use the supplied xdebug.so for profiling, which I’m doing.

zend_extension="/var/www/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_mode=profile

The implication from the documentation is that it should just start accepting requests, but that doesn’t appear to be the case. I’m unclear as to how to troubleshoot this further.

I believe PHP 7 is still a problem with profiling in Komodo. That is - you can generate reports and run them in Komodo, but the “auto connect to Komodo” part of it is unfortunately not operational. Are you using PHP 7?

I am. Is this slated to be fixed before 11?

We’d like to have it in 11 or even 10.2.x if we can. It’s tracked here https://github.com/Komodo/KomodoEdit/issues/2256

All depends on how much time we can afford though, it’s not the highest priority.

It appears that the PHP 5.5 version of the plugin causes the built-in development server of PHP to segfault. Using the PECL version doesn’t cause the segfault, and can debug, but doesn’t provide for remote profiling.

zend_extension=/path/to/komodo/xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_log=/tmp/xdebug.log
xdebug.remote_host=10.1.1.42
xdebug.remote_mode=profile
# php --version
PHP 5.5.9-1ubuntu4.21 (cli) (built: Feb  9 2017 20:54:58) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.5-komodo, Copyright (c) 2002-2014, by Derick Rethans
# php -S 0.0.0.0:8080 -t /path/to/my/project/public/
PHP 5.5.9-1ubuntu4.21 Development Server started at Wed Aug  2 14:49:05 2017
Listening on http://0.0.0.0:8080
Document root is /path/to/my/project/public
Press Ctrl-C to quit.
Segmentation fault (core dumped)