php - Debugging Magento API Calls with XDebug -
i have debug application (let's call app a) communicates magento store through api v1 (via zend_xmlrpc_client).
here's how xdebug configured on php.ini.
xdebug.remote_enable = 1 xdebug.remote_host = 10.0.2.2 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.idekey=phpstorm xdebug.trace_enable_trigger = 1 xdebug.trace_output_dir = "/var/www/xdebug_profile" xdebug.profiler_enable_trigger = 1 ;xdebug.profiler_enable = 1 xdebug.profiler_output_dir = "/var/www/xdebug_profile" xdebug.remote_log = "/var/www/xdebug_profile/xdebug.log"
when go magento store through browser , enable debugging (using xdebug chrome extension), can debug magento store.
i same thing app a. i want access app through browser , able debug magento code executed through api calls. tried pass cookie xml rpc client way (following article: http://inchoo.net/magento/magento-xdebug/ ) :
$xmlrpc_client->gethttpclient()->setcookie('xdebug_session', 'phpstorm');
but it's not working. tried xdebug_session_start cookie name, tried pass ?xdebug_session_start=phpstorm @ end of url client calls , it's not working either.
fyi, i'm using vagrant environment, both applications using same ip. here's content of /etc/hosts file :
<my_vagrant_ip_address> dev.mysuperstore.com dev-app-a.mysuperstore.com
any highly appreciated !
Comments
Post a Comment