Welcome Guest, Not a member yet? Register   Sign In
CI debugging tools
#1

Hi folks, I just dive into this CI world for a personal project which is based on CI 3.X. I'd like to know what're the best practices to start working on, for the purpose of development and debugging? I'm not much a php guy at this moment. I do know programming such as C/C++/Java. Thanks in advance.
Reply
#2

CodeIgniter 4 is using php unit for debugging the code.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(06-24-2021, 08:57 PM)InsiteFX Wrote: CodeIgniter 4 is using php unit for debugging the code.

Many thanks. I'm trying now VSCode and phpstorm. Still new to CI
Reply
#4

@InsiteFX,
> CodeIgniter 4 is using php unit for debugging the code.

@andalu,
> I do know programming such as C/C++/Java. Thanks in ad

PHP Unit falls a long way short of the equivalent C/C++ Debugging and I would advise adding the following at the top of all your PHP files:
Code:
<?php declare(strict_types=1); // ONLY APPLIES TO THIS FILE
//

https://www.phptutorial.net/php-tutorial...ict_types/

Using strict_types overrides PHP Default of Type Conversion sometimes called Type Juggling:

https://en.wikipedia.org/wiki/Type_conversion
Reply




Theme © iAndrew 2016 - Forum software by © MyBB