phpeclipsedebuggingzend-debugger

How to log PHP messages to a debug console while debugging in Eclipse?


I want to do trace or log messages to a debug window while debugging PHP in Eclipse.

Can I do it printing to stderr or something like that? I've tried, but I don't know in which Eclipse window to look for it.

I know I can do this via watches and expressions, but it would be more agile to have it automatically printed each time I debug.

I use Eclipse with Zend Debugger and Apache.


Solution

  • The easiest way to do is just create a text file and append your debugging log in that file.