Codeigniter 4 Debugging - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Codeigniter 4 Debugging (/showthread.php?tid=87749) |
Codeigniter 4 Debugging - Mark Morcom - 05-28-2023 I used to use CI3 then moved over to Laravel. I am keen to start my new game project using CI4, but am battling to get around some of issues. The main issue that I am having is the debugging mode in development. Code: #-------------------------------------------------------------------- I have set the CI_ENVIRONMENT = development and I have set the base URL. When there is an issue on the page, I get no details of the issue, simply a message stating Whoops. I have tried the app on Laragon, Xampp and now on Wampserver. I get no details of errors at all. Please help RE: Codeigniter 4 Debugging - captain-sensible - 05-28-2023 check its not the usual suspects. if on Linux make sure Code: sudo chmod 777 witable _R Code: public $baseURL = 'http://127.0.0.7/'; baecuase it set each dev to a url via /etc/hosts then also virtual host config in app/config/Logger.php Code: public $threshold = 9; you can have a play around in controllers with a try catch block. For blogs I have a log in, by admin and session. Then i have a code block, to help inform me of errors Code: try So i have a view called info2.php used specifically for errors (for dev) if exception is caught i find it nice to output to a view . IN the view I have Code: <h11><?php echo $infoException;?></h11> at least its better than a blank page lol RE: Codeigniter 4 Debugging - biker64 - 05-28-2023 If that is your actual .env file then you need to uncomment the CI_ENVIRONMENT and app.baseURL lines PHP Code: CI_ENVIRONMENT = development RE: Codeigniter 4 Debugging - captain-sensible - 05-28-2023 or Code: $_SERVER['CI_ENVIRONMENT'] = 'development'; in your /public/index.php RE: Codeigniter 4 Debugging - namankumar80510 - 05-28-2023 (05-28-2023, 05:27 AM)Mark Morcom Wrote: I used to use CI3 then moved over to Laravel. I am keen to start my new game project using CI4, but am battling to get around some of issues.You need to uncomment (remove the # before) the CI_ENVIRONMENT and app.baseURL lines to get it to work. |