Call to a member function getAction() on a non-object

随声附和 提交于 2019-12-13 00:48:48

问题


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.

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

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.

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.

My versions right now :

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


回答1:


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 ....



来源:https://stackoverflow.com/questions/23867400/call-to-a-member-function-getaction-on-a-non-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!