php - Laravel and Xdebug - I can't debug because of Fatal error: Can't find Controller class that all controllers extend it -


so managed configure xdebug (2.4.0) php 7 (7.0.4). can't use in laravel project. trying debug block of code inside cartcontroller. says there error because can't find controller cartcontroller extends. in phpstorm console:

c:\xampp\php\php.exe -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 c:\users\nikolay\dropbox\store\app\http\controllers\cartcontroller.php php fatal error: class 'app\http\controllers\controller' not found in c:\users\nikolay\dropbox\store\app\http\controllers\cartcontroller.php on line 14 php stack trace: php 1. {main}() c:\users\nikolay\dropbox\store\app\http\controllers\cartcontroller.php:0

fatal error: class 'app\http\controllers\controller' not found in c:\users\nikolay\dropbox\store\app\http\controllers\cartcontroller.php on line 14

call stack: 2.1491 376944 1. {main}() c:\users\nikolay\dropbox\store\app\http\controllers\cartcontroller.php:0

process finished exit code 255

there no problem in application when run on server. how can fix , why occur?

edit - 28/05/2016 - here cartcontroller:

<?php  namespace app\http\controllers;  use app\cart; use app\cartitem; use app\product; use illuminate\http\request;  use app\http\requests; use illuminate\support\facades\auth; use illuminate\support\facades\session;  class cartcontroller extends controller {     public function showcart() {...}      public function additem(request $request, $product_id) {...}      public function deleteitem($product_id, $size) {...}      public function showcheckout() {...}      private function calculatetotalprice() {...} } 

i'm mistaken ... sounds you're trying debug controller without going through bootstrapping/routing etc?

you application working 1 server because of bootstrapping, instantiation, dependency injection etc. done.

to debug application flow debug public/index.php breakpoints in controller methods , either manually set/override $_server['request_uri'] route want debug in index.php before ... or install xdebug browser extension, start debug listener in phpstorm , visit route in browser.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -