SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    1 Thread(s)

    Useful or not - Javascript error reporting.

    I'm wrapping up a feature for my custom framework where any time a Notice or Warning level error is raised the information on the error is placed in an array. That array is then passed to Javascript which, using the Firebug console of Firefox, reports out the PHP errors that occurred during script execution.

    This process only occurs in debug mode. Outside of debug mode it's turned off to help speed the script along.

    I did it mainly as a thought exercise and practice on error handling, but will this actually be useful beyond a feel-good effect?

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Pretty Handy for debuggig.
    Could even skip the Javascript middle man and do something similar to FirePHP.
    http://www.firephp.org/
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •