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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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