35 Troubleshooting with Xdebug
Debugging is only for people who make mistakes—so, unfortunately, it’s for all of us. Using the de facto standard (and other techniques), we search for an error in a PHP script.
The examples in this book all have one thing in common: They work (at least in our tests). However, the code does not always fall from the sky but is sometimes the result of several attempts and trials. On the way to achieving it, we repeatedly encountered errors that we then had to rectify. Some of the techniques for this are briefly described in this chapter.
What we do not do at this point is to detect parser errors and fix them. With such errors, the source code is syntactically incorrect; perhaps a bracket or a quotation mark is missing, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access