PHP 用Symfony VarDumper Component 调试

Symfony VarDumper 类似 php var_dump() 

官方文档写的安装方法 :

  按照步骤 就可以在 running any PHP code  时候使用了

  In order to have the dump() function always available when running any PHP code, you can install it globally on your computer:

  1. Run composer global require symfony/var-dumper;//全局安装
  2. Add auto_prepend_file = ${HOME}/.composer/vendor/autoload.php to your php.inifile; //在php.ini里面配置auto_prepend_file  后面是全局安装的composer autoload.php文件的路径位置信息
  3. From time to time, run composer global update symfony/var-dumper to have the latest bug fixes.//全局更
  4. 这样在任意文件内就可以使用dump   来打印调试了
posted @ 2016-09-12 13:12  哦先生  阅读(920)  评论(0编辑  收藏  举报