I am new to xdebug and would like to know if this is possible to debug a php script from Windows command line (applying breakpoints). I have gone through various examples of using xdebug but all they talk about debugging through IDE (Eclipse or Netbeans).
So i am wondering if this is possible to debug scripts using command line (Windows). If this is possible then can someone provide link/URL that provides step by step guidance to achieve this?
-
Just out of interest: why would one want to do that? Even if you succeed in manually handling the protocol, that would be a really really tough task. Following such debug conversation is more than just a few commands. BTW: kdevelop with its php plugin contains an excellent frontend to xdebug. Just to mention a further alternative.arkascha– arkascha2012年11月30日 09:40:10 +00:00Commented Nov 30, 2012 at 9:40
2 Answers 2
The xdebug project page mentions some client implementations, it mentions:
Xdebug 2 is bundled with a simple command line client for the DBGp protocol.
Did you try that one?
6 Comments
Xdebug's DBGp protocol is fairly simple. There is a debugging client "debugclient" available for Windows, which used to be linked from the downloads page (http://xdebug.org/download.php) but it seems I had forgotten to add that back. It is still downloadable through http://xdebug.org/files/debugclient-0.9.0.exe
In order to use this, you do need to write DBGp commands. The reference for this is at http://xdebug.org/docs-dbgp.php - this is not an easy thing to do, but it does work.
1 Comment
Explore related questions
See similar questions with these tags.