Book Image

Magento 2 Development Cookbook

Book Image

Magento 2 Development Cookbook

Overview of this book

With the challenges of growing an online business, Magento 2 is an open source e-commerce platform with innumerable functionalities that gives you the freedom to make on-the-fly decisions. It allows you to customize multiple levels of security permissions and enhance the look and feel of your website, and thus gives you a personalized experience in promoting your business.
Table of Contents (18 chapters)
Magento 2 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


Debugging a website in an efficient way is one of the most important jobs of PHP developers. These days, a website is a lot more than a few simple HTML pages. In a Magento store, you have a lot of complex business logic that is used in the flow of an e-commerce transaction.

Debugging in PHP is not out of the box like in other programming languages, such as .NET and Java. There are many ways to configure a PHP debugger (such as Xdebug). With a good code editor and debugger, debugging in Magento is much easier.

Another part of debugging and code testing are automated tests. Automated tests, or Unit tests, are developed to test the output of functions for a given input. When some code is changed, you can run the tests and a report will be generated about the failed and passed tests.