I'm trying to get php debug output to the console window in Eclipse but everything I have tried (echo, print) gets output to the web page. Any ideas?
Thanks
David.
I'm trying to get php debug output to the console window in Eclipse but everything I have tried (echo, print) gets output to the web page. Any ideas?
Thanks
David.
Are you trying to write a command line program in PHP that will be running outside of a web context (e.g. not using Apache, run as a script from the command line)? If so, you could try debugging as a "PHP Script" (see http://www.jansch.nl/2009/05/03/debugging-parameters-for-cli-apps-using-eclipse-pdt/). Either way you will probably want to setup something like xdebug for debugging: http://www.eclipse.org/pdt/articles/debugger/os-php-eclipse-pdt-debug-pdf.pdf