Re: [Resin-interest] Can XDebug (PHP) be used in quercus?
DL wrote: > On 6 Dec 2010 at 12:00, resin-interest-requ...@caucho wrote: > > > I can answer my own question by confirming that there is no way of > using XDebug (PHP) in Quercus. This comes from the XDebug author .. > > /"Xdebug ties really deeply into the PHP Engine. Doing it/ > /again for Quercus means a whole new software package (in Java I / > /presume)"./ > > So the second question remains .. > > Is there an XDebug equivalent in java? We're looking at approaching that issue from a different direction. Since Quercus is Java, eclipse can debug it as a Java program, and should already have the .php to .class line numbers. What we need to add is the hooks in eclipse to let it pretty-print the PHP objects as PHP values instead of the underlying Java implementation. >From skimming the eclipse API, it doesn't look too difficulty, but we haven't actually implemented it yet. Once we get that working, debugging using eclipse should be very similar to debugging Java. (We'd be thrilled, of course, if anyone wants to explore prototyping that idea, since the eclipse plugin would be separate from the main Quercus code base.) -- Scott > > DL > > > Today's Topics: > > > >1. Can XDebug (PHP) be used in quercus? (DL) > > > > > > -- > > > > Message: 1 > > Date: Mon, 06 Dec 2010 12:08:42 - > > From: "DL" > > Subject: [Resin-interest] Can XDebug (PHP) be used in quercus? > > To: resin-interest@caucho.com > > > > XDebug works fine in my standard Apache + PHP (non quercus) > configuration. > > > > I have XDebug extension (php_debug-2.0.3-5.2.5.dll in c:\php\ext\) > but for Apache + PHP. > > > > Local php.ini (copied from my Apache php.ini) is in the > Web-Inf/php.ini path referred to by > > quercus. > > > > XDebug extension (php_debug-2.0.3-5.2.5.dll from > http://www.xdebug.org/) is probably not > > even recognised by quercus since it is a dll . > > > > Incidentally there are spaces in the php.ini path printed out by > phpinfo.php > > since I have Tomcat running in this path ... > > > > "c:\Program Files\Apache Software Foundation\Tomcat 6.0\. > \php.ini" > > > > Can I somehow use XDebug when using quercus servlet embedded in > tomcat webapp? > > > > Is there a java equivalent of XDebug (for PHP)? > > > > I've found very little about XDebug PHP (other than the Java Xdebug > variant) in caucho > > forums. > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Can XDebug (PHP) be used in quercus?
You can try to debug your PHP app by using Debug mode of your application server. For example, I use Glassfish in Debug mode and I attach a debugger to debug quercus and, by extension, php scripts (yes, it's ugly). Kevin Decherf - M: +33 681194547 Office & Production Manager, Clever Cloud SAS On Tue, Dec 7, 2010 at 1:13 PM, DL wrote: > On 6 Dec 2010 at 12:00, resin-interest-requ...@caucho wrote: > > >I can answer my own question by confirming that there is no way of > using XDebug (PHP) in Quercus. This comes from the XDebug author .. > >*"Xdebug ties really deeply into the PHP Engine. Doing it* > *again for Quercus means a whole new software package (in Java I * > *presume)".* > >So the second question remains .. > >Is there an XDebug equivalent in java? > >DL > >> Today's Topics: > > > >1. Can XDebug (PHP) be used in quercus? (DL) > > > > > > -- > > > > Message: 1 > > Date: Mon, 06 Dec 2010 12:08:42 - > > From: "DL" > > Subject: [Resin-interest] Can XDebug (PHP) be used in quercus? > > To: resin-interest@caucho.com > > > > XDebug works fine in my standard Apache + PHP (non quercus) > configuration. > > > > I have XDebug extension (php_debug-2.0.3-5.2.5.dll in c:\php\ext\) but > for Apache + PHP. > > > > Local php.ini (copied from my Apache php.ini) is in the > Web-Inf/php.ini path referred to by > > quercus. > > > > XDebug extension (php_debug-2.0.3-5.2.5.dll from > http://www.xdebug.org/) is probably not > > even recognised by quercus since it is a dll . > > > > Incidentally there are spaces in the php.ini path printed out by > phpinfo.php > > since I have Tomcat running in this path ... > > > > "c:\Program Files\Apache Software Foundation\Tomcat 6.0\. > \php.ini" > > > > Can I somehow use XDebug when using quercus servlet embedded in tomcat > webapp? > > > > Is there a java equivalent of XDebug (for PHP)? > > > > I've found very little about XDebug PHP (other than the Java Xdebug > variant) in caucho > > forums. > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Can XDebug (PHP) be used in quercus?
On 6 Dec 2010 at 12:00, resin-interest-requ...@caucho wrote: I can answer my own question by confirming that there is no way of using XDebug (PHP) in Quercus. This comes from the XDebug author .. "Xdebug ties really deeply into the PHP Engine. Doing it again for Quercus means a whole new software package (in Java I presume)". So the second question remains .. Is there an XDebug equivalent in java? DL > Today's Topics: > >1. Can XDebug (PHP) be used in quercus? (DL) > > > -- > > Message: 1 > Date: Mon, 06 Dec 2010 12:08:42 - > From: "DL" > Subject: [Resin-interest] Can XDebug (PHP) be used in quercus? > To: resin-interest@caucho.com > > XDebug works fine in my standard Apache + PHP (non quercus) configuration. > > I have XDebug extension (php_debug-2.0.3-5.2.5.dll in c:\php\ext\) but for > Apache + PHP. > > Local php.ini (copied from my Apache php.ini) is in the Web-Inf/php.ini path > referred to by > quercus. > > XDebug extension (php_debug-2.0.3-5.2.5.dll from http://www.xdebug.org/) is > probably not > even recognised by quercus since it is a dll . > > Incidentally there are spaces in the php.ini path printed out by phpinfo.php > since I have Tomcat running in this path ... > > "c:\Program Files\Apache Software Foundation\Tomcat 6.0\.\php.ini" > > Can I somehow use XDebug when using quercus servlet embedded in tomcat > webapp? > > Is there a java equivalent of XDebug (for PHP)? > > I've found very little about XDebug PHP (other than the Java Xdebug variant) > in caucho > forums. > > > End of resin-interest Digest, Vol 54, Issue 5 > * ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest