tag:blogger.com,1999:blog-15279569.post1496061808852315719..comments2008-10-04T11:02:33.799-06:00Comments on WebORB Blog: Debugging PHP code when invoked from FlexMark Pillerhttp://www.blogger.com/profile/18371158765462322166noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-15279569.post-16499670387817232722008-10-04T11:00:00.000-06:002008-10-04T11:00:00.000-06:00I can attest - XDebug works great for debugging PH...I can attest - XDebug works great for debugging PHP services for Flex. In contrast to Eric, I just set breakpoints, start the PHP debug session, *leave that window open*, and open my Flex app. The PHP debugger wakes up and breaks as it's triggered by calls from Flex.dylanhttp://www.blogger.com/profile/04656834992527069748noreply@blogger.comtag:blogger.com,1999:blog-15279569.post-82114737968374613382008-09-15T12:37:00.000-06:002008-09-15T12:37:00.000-06:00I develop on Mac OSX Leopard with Flex Builder 3. ...I develop on Mac OSX Leopard with Flex Builder 3. I can use Flex Builder 3 to debug Fx or Air applications that use WebOrb PHP simultaneously with XDebug running in PDT. Sweet!<BR/><BR/>Briefly, to debug the AIR application I&#39;m working on currently...<BR/><BR/>-- I used MacPorts to install Apache 2, PHP 5, MySQL 5, and XDebug. <BR/>-- I configured XDebug in PHP.ini as follows:<BR/><BR/>zend_extension=&quot;/opt/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so&quot;<BR/>xdebug.remote_enable=On<BR/>xdebug.remote_autostart=On<BR/>xdebug.remote_handler=dbgp<BR/>xdebug.remote_host=127.0.0.4<BR/>xdebug.remote_port=9000<BR/>xdebug.remote_mode=req<BR/>xdebug.remote_log=&quot;path-to-log-file&quot;<BR/><BR/>-- I DID NOT integrate an Eclipse PHP environment with Flex Builder 3. Instead, I downloaded the &quot;all-in-one&quot; PDT 1.0 Eclipse IDE from http://downloads.zend.com/pdt/all-in-one/ This includes the XDebug Client and everything else you need, and worked out-of-the-box.<BR/><BR/>-- My project properties in Eclipse PDT include the following:<BR/>Resource: /Services<BR/>Type: Project<BR/>Location: /path-to-WebOrb-Services_dir<BR/><BR/>I created a symbolic link to the WebOrb Services directory in the root directory of my local PHP Development Web Server to facilitate the Debug configuration discussed next.<BR/><BR/>In Open Debug Dialog, I created a PHP Web Page Debug configuration with<BR/><BR/>---Server Tab---<BR/>Server Debugger: XDebug<BR/>PHP Server: my local PHP Development Web Server<BR/>File: a PHP Class file in services that I wanted to debug<BR/>URL: checked Auto Generate<BR/>-----------------<BR/><BR/>When you start a Debug Session with this configuration, it launches the browser. You can close it, it isn&#39;t needed.<BR/>You can place break points in the PHP Class file that you specified on the Debug Dialog Server Tab. At this point, the PDT XDebug client is waiting for a call to the class file that sets the XDEBUG_SESSION_START session variable, in your RemoteObject like so:<BR/><BR/> endpoint=&quot;http://myLocalDevelopmentServer/weborb.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&quot; <BR/> <BR/>Some References that could prove helpful:<BR/>http://www.themidnightcoders.com/forum/default.aspx?g=posts&amp;t=452<BR/>http://www.eclipse.org/pdt/<BR/>http://devzone.zend.com/article/2930-Debugging-PHP-applications-with-xdebugErichttp://www.blogger.com/profile/01857856801515270274noreply@blogger.com