Neeraj
Neeraj

Reputation: 9205

php command line debugging using xdebug

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?

Upvotes: 2

Views: 5632

Answers (2)

Derick
Derick

Reputation: 36794

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.

Upvotes: 2

arkascha
arkascha

Reputation: 42984

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?

Upvotes: 2

Related Questions