Chapter 5. Debugging and Profiling
During development, every developer faces problems, and it becomes unclear what is really going on here and why the problem is generated. Most the time, these issues can be logical or with the data. It is always hard to find such issues. Debugging is a process to find such issues and problems and fix them. Similarly, we often need to know how many resources a script consumes, including memory consumption, CPU, and how much time it takes to execute.
In this chapter, we will cover the following topics:
- Xdebug
- Debugging with Sublime Text 3
- Debugging with Eclipse
- Profiling with Xdebug
- PHP DebugBar
Xdebug
Xdebug is an extension for PHP that provides both debugging and profiling information for PHP scripts. Xdebug displays ...
Get PHP 7: Real World Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.