在非对象上调用成员函数getAction() [英] Call to a member function getAction() on a non-object

查看:103
本文介绍了在非对象上调用成员函数getAction()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我按照这些说明进行操作( http://pietervogelaar.nl/php-xdebug- netbeans-vagrant/)来启动XDebug并与vagrantNetBeans一起运行. 现在它可以运作了....差不多.

Hi there i followed these instructions (http://pietervogelaar.nl/php-xdebug-netbeans-vagrant/) to get XDebug up and running with vagrant and NetBeans. It now works .... almost.

每当我运行触发断点的代码时,NetBeans都可以正常工作,使我可以毫无问题地进行调试.

Anytime i run a code that fire a breakpoints, NetBeans works fine allowing me to do my debug thing with no problems.

事情是在请求的末尾,Laravel将始终返回该错误: 调用non-object上的成员函数getAction(),指定
looks weird : xdebug:/­/­debug-eval:1.

The thing is at the end of the request Laravel will always return that error : Call to a member function getAction() on a non-object, specifying a code location that
looks weird : xdebug:/­/­debug-eval:1.

即使是陌生人,我的页面也会被渲染,并且html在这里,但是标准的laravel错误页面也会被渲染,在我自己页面的末尾……

Even stranger, my page is rendered and the html is here, but the standard laravel error page is rendered also, at the end of my own page ......

当然,如果我禁用断点,一切都会正常运行.

Of course if i disable my breakpoint, everything runs just fine.

我现在的版本:

Apache:
Server version: Apache/2.2.22 (Ubuntu) Server built: Apr 17 2014 21:49:25

Apache :
Server version: Apache/2.2.22 (Ubuntu) Server built: Apr 17 2014 21:49:25

PHP:
PHP 5.4.28-1+deb.sury.org~precise+1 (cli) (built: May 5 2014 09:32:44) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

PHP :
PHP 5.4.28-1+deb.sury.org~precise+1 (cli) (built: May 5 2014 09:32:44) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

推荐答案

好,我终于找到了它. 问题并非来自XDebug或Php或Laravel. 问题来自Netbeans.

Ok i finally found it. Problem doesn't come from XDebug or Php or Laravel. Problem comes from Netbeans.

我的监视列表中有一个不再使用的表达式. 删除监视列表中的每个自定义条目都可以解决问题.

I had an expression in my watch list i wasn't using anymore. Deleting every custom entries in the watch list just solves the issues.

希望在某些时候可以帮助别人....

Hope at some point it helps someone else ....

这篇关于在非对象上调用成员函数getAction()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆