Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Programming Help
Reload this Page Developer Tutorials: Debugging PHP code using debug_backtrace
Tags: , , , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,076
Jack of All Trades
CyberSpace United States
   
Developer Tutorials: Debugging PHP code using debug_backtrace - 02-29-2008

On the Developer Tutorials blog today, Hasin Hayder has pointed out a handy PHP function that can make your debugging a bit less of a headache - debug_backtrace.
Most of the PHP developers debug php code in their local machine just by trial and error using "print_r","var_dump" and "echo". They don't write unit tests or follow any advanced debugger like xdebug. But the problem of using these methods is you cannot fool proof your code and their might be some bugs still present in your code.
He includes a simple example to show how it works and what kind of output it will give - a nested function call. Personally, I use this in some of my classes (like a database abstraction later) to track and see which functions my calls are coming from and what data they're sending me - easier to debug in one place than trying to guess.


Developer Tutorials: Debugging PHP code using debug_backtrace - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Developer Tutorials: Debugging PHP code using debug_backtrace
Thread Thread Starter Forum Replies Last Post
Developer Tutorials Blog: Five reasons you should be using PHP Affiliate Blogs Programming Help 0 02-18-2008 01:54 PM
Developer Tutorials Blog: 5 Ways to be a Better PHP Developer Affiliate Blogs Programming Help 0 02-13-2008 04:04 PM
Developer Tutorials Blog: Find your next PHP gig Affiliate Blogs Programming Help 0 02-11-2008 02:50 PM
Developer Tutorials Blog: 5 essential development facts every PHP developer should kn Affiliate Blogs Programming Help 0 01-24-2008 09:33 PM
Zend Developer Zone: Debugging PHP applications with xdebug Affiliate Blogs Programming Help 0 01-07-2008 01:15 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34