[xdebug-general] Re: Bug white breakpoint arrow

From: Dave Kelsey <d_kelsey[@]uk.ibm.com>
Date: Tue, 16 Dec 2008 23:15:28 +0000

Hi Derick,

PDT supports watch expressions, so people use this to enter expressions to
be evaluated. In order to use property_get I would have to parse the
expression and determine whether I should use property_get or eval
depending on what was entered.

That may or may not be an easy thing to determine in PDT as I would need
to work out how to pass the expression into the parser/ast generator (code
not authored by me) to determine what it is. So the easiest solution is to
just pass the whole thing to eval but as we have discussed before this can
cause the interpreter to terminate the script. I think if people want a
bit more protection from what they enter then they could raise a bugzilla
enhancement to determine if something is an expression or just a property
get and I will look at it as time permits. Expressions will always have to
be passed to eval and could still cause the script to terminate.

Best regards
Dave Kelsey

xdebug-general-bounce[@]lists.xdebug.org wrote on 02/12/2008 10:22:49:

> On Fri, 21 Nov 2008, Wibaux Yvan wrote:
> > Thanks for this great debugger!
> >
> > I have the same problem as:
> > http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg01307.html
> >
> > The problem comes randomly even with a php file containing: echo
> >
> > Thanks for your help if you find the origin of the problem!
> >
> > <- eval -i 898 -- JHRoaXMtPl9tb2R1bGVMYXlvdXRz
> > -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
> > http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="898"
> > status="stopped" reason="ok"></response>
> This eval statement "$this->_moduleLayouts" causes an internal error --
> and thus aborts the execution of the script. I do not know why eclipse
> uses eval here, it shouldn't need to do that (use use property_get).
> For the particular issue however, I might have a solution which should
> address the abortion of the script on eval errors.
> regards,
> Derick
> --
> Like Xdebug? Send a postcard:
> Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Received on Wed Dec 17 2008 - 00:31:30 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST