4. Debugging in PHP(var_dump, xdebug and webgrind, rubber duck) | Build a CMS using OOP tutorial MVC

Опубликовано: 18 Октябрь 2024
на канале: Applicable Programming
6,890
156

We talk a bit on how to debug and some tools like var_dump, xdebug and webgrind that can help you fallow your code around in your application.
We also make a functionality that will allow us to have a code that is being called before and each action/method in our controllers.
This is the fourth lesson in full php mvc tutorial for beginners who are familiar with php basics and are starting with oop concepts.
You can learn Object Oriented Programming principles by coding along on this project, as we build one Content Management System using modern OOP patterns.

We show the problem, then we try non-oop solution first, and then show when and how we can benefit from OOP solutions.


Interested in learning real-life PHP design patterns?
➡️ https://www.ApplicableProgramming.com/


Join our Facebook group to follow the news and join discussion
➡️   / applicableprogrammers  
or discord group if that is more your thing
➡️   / discord  

Need a hosting platform for your projects and portfolio? I've been using Bluehost for over fifteen years for my personal and professional projects, and never had an issue or reason to use something else.
Find out more here https://www.bluehost.com/track/dakipro/


➤ LINKS
Playlist for entire CMS:    • 1. Build a CMS using OOP PHP tutorial...  
SOURCE: https://github.com/applicable-program... (use tags to navigate between lessons)
Kint library: https://kint-php.github.io/kint/
xDebug: https://xdebug.org/
Webgrind: https://github.com/jokkedk/webgrind
Rubber Duck debugging: https://en.wikipedia.org/wiki/Rubber_...
Other tutorials: www.ApplicableProgramming.com

If you are interested in programming courses related to web, please visit www.ApplicableProgramming.com to view courses where we show the problem, then we try to solve it the hard way, and then we show how we can benefit from proven solutions.



DISCLAIMER: Some of the links might be affiliated, which means that if you click on one of the product links, I’ll receive a commission. This helps support the channel and allows me to continue to make videos like this. I will never support or push a product I don't believe in. Thank you for the support!


BeforeAction (0:00)
Follow code (6:30)
Manual dump debugging (9:00)
var_dump (9:40)
xdebug (14:33)

webgrind (21:20)
Rubber duck debugging (23:55)