开发者

Writing a debugger for php [closed]

开发者 https://www.devze.com 2023-03-03 07:49 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消