logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

DBGp - Eval, property_get, & property_value: msg#00004

Subject: DBGp - Eval, property_get, & property_value
Hello Derick & all XDebuggers-
First and foremost, AMAZING work on this extension and the DBGp protocol Derick.  All hail.
 
I'm writing a PHP IDE using XDebug and the DBGp protocol.  I have the basic start, stop, and set breakpoints working, and am currently implementing a "watch window" feature.  I just can't seem to get the behavior I'm looking for.  I get the feeling that "eval" is a bit better suited to the functionality of a watch window (since in some IDEs you can do things like $x = 1 via watch).  But that only sends me back a property address.  Then I can't get at the property contents because I don't have a long name to ask for, only the address. 
 
So given the code below, I set the breakpoint at the line "$y = 7". 
 
<?php
$z = new Test();
$x = 3;
$y = 7;
class Test
{
 var $y = 2,$x = 3;
}
?>
 
 How can I get the value of $z, and all its children? In the debug client, property_value gives me this:
<response command="property_value" transaction_id="jared" type="object" children="1" classname="test" numchildren="2"></response>
 
Useful stuff, but how would I get the rest of the children?  Similarly, how would I do function calls, assignments, and so-on with "watch window like" functionality?  The dbgp documentation is pretty good, but a little lacking on these points.  Sorry if it's in there and I missed it somehow.
 
Thanks again for the great work and willingness to give something so valuable away for free.
-Jared
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe