我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php Eclipse控制台输出

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

近期文章

  • 学校管理MySQL数据库设计
  • 用于浏览器和CDN的不同Cache-Control
  • Centos Linux中没有保存PHP会话变量?
  • 在哪里保留简单的计数器值(DB和文件除外)
  • 在php中找到正确的div / class的Ajax
  • PHP:撤消set_time_limit?
  • 通过php上传视频文件到IIS 7失败
  • magento得到了和特价
  • 如何使用Gettext用于邮件模板
  • 在Facebook上发布图像,上面有自定义文字
  • 通过ajax将图像上传到webserver,并将给定的文件名插入数据库
  • PHP扩展设置
  • 如何制作粘性形式的分页复选框
  • PHP数组父/子显示/继承
  • 在jQuery自动刷新div中使用jQuery工具提示
  • 加密Android中的数据[重复]
  • XAMPP MySQL和file_get_contents
  • jquery mobile,结合jquery移动“页面”和内部页面
  • 权限 - PHP和FTP
  • 双向一对多

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华