Writing a debugger for php [closed]
I am quite dissapointed of the debuggers and servers that are available on the market for php.
I am planning to make my own mini-web server for php with a debugger.
I want to do this in .NET.
A very basic IDE might also be required (I guess a notedpad with some color coding).
I don't think the server will be a problem, since all i need to do is interop with the php executable and return output.
开发者_开发问答However the debugging part seems quite a daunting task. I have never written a debugger before, so I would like to get some guidelines on how to design a debugger for php and where to start.
Thanks.
You don't need to write the debugger. You can use the xdebug extension and the http://www.xdebug.org/docs-dbgp.php DBGp protocol. It's easy to interface with that, but you are completely free in designing a frontend upon it. (There is even one in Python http://code.google.com/p/pdbg/, which might by utilizable with IronPython?)
It's not very encompassing with features, but you can easily execute in-PHP callbacks to retrieve additional debugging information.
精彩评论