» Sosovn News
» PHP News
» Articles
Your Email:
- Only $295 --> $245
- 06 months free upgrades
- Secure online ordering
- Download within 24 hours
PHP Debugging Tip

Scott Johnson found that a record in a db table wasn’t being inserted correctly, and wanted to investigate further on why the setter function was getting called incorrectly. "This meant knowing exactly where it was getting called in a very large command line PHP script", Scott writes.

Scott acknowledges that an IDE makes this kind of debugging much easier, so he used get_caller_context, a debugging function, to support this. The procedure of debugging used here is not dissimilar to the dye technique Scott wrote about a few weeks ago. He syas the get_caller_context function is much more fine grained whereas dye gave way too much information for the problem.

Read the Post

« Back