[Owncloud] php debugging suggestions

kunal ghosh kunal.t2 at gmail.com
Mon Oct 17 14:25:33 UTC 2011


Hi John,

I was aware of Xdebug , bug did not know that it could debug php where we
have
non browser access. Will definitely give it another try.


On Mon, Oct 17, 2011 at 2:05 PM, Jon Spriggs <jon at sprig.gs> wrote:

> Hi Kunal,
>
> You might be interested in an extension for PHP called XDebug. If
> you're running Ubuntu, it's just an apt-get away.
>
> Once you've got XDebug installed, you need something that can walk
> through the code - I use Eclipse with it's PHP support, which includes
> support for XDebug.
>
> Try this:
> http://www.rdeeson.com/weblog/102/installing-xdebug-for-use-with-eclipse-on-ubuntu-linux.html
>
> If you're using XAMPP under Windows, try this:
> http://robsnotebook.com/php_debugger_pdt_xdebug
>
> I use this all the time for my personal coding.
>
> Regards,
> --
> Jon "The Nice Guy" Spriggs
>
> On 17 October 2011 02:27, kunal ghosh <kunal.t2 at gmail.com> wrote:
> > Hi Robin,
> >
> >>
> >> Since I've been having the same problem with debugging, non-browser
> >> access,
> >> I've finally implemented the thing I promised weeks ago, a simple
> logging
> >> mechanism.
> >
> > The logging tool ( /lib/log.php ) looks good, but my problem is more of,
> > when i call external libraries, what's happening there, what's causing
> the
> > external
> > library call to fail ?
> > I can think of two possible solutions:
> > 1. A debugger with Stepping tool (kinda like gdb) but haven't come across
> > any.
> > 2. Heavily instrument owncloud with debug logs (which allows external app
> > authors to
> > debug their applications ).
> > I think 2 is very do able and I am instrumenting lib/base.php with debug
> > logs for my
> > debugging needs, it'd be great if the changes go back into owncloud
> > mainline.
> > We could use these debug messages for debugging reported bugs as well.
> > --
> > Kunal
> > _______________________________________________
> > Owncloud mailing list
> > Owncloud at kde.org
> > https://mail.kde.org/mailman/listinfo/owncloud
> >
> >
>



-- 
regards,

Kunal Ghosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20111017/8d1f450c/attachment.html>


More information about the Owncloud mailing list