error-reporting

Php error_reporting, Best setting for development? E_STRICT ?

Typically I use E_ALL to see anything that php might say about my code to try and improve it. I just noticed a error constant E_STRICT, but have never used or heard about it, is this a good setting to use for development? The manual says: Run-time notices. Enable to have PHP suggest changes to your code which will ensure the best in...

Reasons why PHP would echo errors, even with error_reporting(0)?

What are some reasons why php would force errors to show, no matter what you tell it to disable? I have tried error_reporting(0) and ini_set('display_errors',0) with no luck. ...

How to best implement simple crash / error reporting?

What would be the best way to implement a simple crash / error reporting mechanism? Details: my app is cross-platform (mac/windows/linux) and written in Python, so I just need something that will send me a small amount of text, e.g. just a timestamp and a traceback (which I already generate and show in my error dialog). It would be f...

How can I find out what triggered the TRACKER_ID rule in spamassassin?

I recently received an email from my girlfriend that spamassassin marked as spam, mostly because spamassassin detected a tracker ID... except there wasn't one. I'd like to know what triggered it, so that I can report a sensible bug. ...

Show error messages on top of form ? Or beside each individual fields?

Which approach do you all think is better? ...

Error logging in C#

I am making my switch from coding in C++ to C#. I need to replace my C++ error logging/reporting macro system with something similar in C#. In my C++ source I can write LOGERR("Some error"); or LOGERR("Error with inputs %s and %d", stringvar, intvar); The macro & supporting library code then passes the (possibly varargs) formatted me...

How can I capture all exceptions from a wxPython application?

I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled exceptions that would cause the app to crash? Ideally I'd want to capture all output (not just er...

How to turn off mysql errors from being displayed to screen in CodeIgniter

Even though error_reporting is set to 0, database errors are still being printed to screen. Is there a setting somewhere I can change to disable database error reporting? This is for CodeIgniter v1.6.x EDIT: Re: Fixing errors - Um, yes. I want to fix the errors. I get error notices from my error log, not from what my visitors see printe...

internal error markers

Theoretically, the end user should never see internal errors. But in practice, theory and practice differ. So the question is what to show the end user. Now, for the totally non-technical user, you want to show as little as possible ("click here to submit a bug report" kind of things), but for more advanced users, they will want to know ...

Where do you like to catch exceptions and why?

Where do you like to catch exceptions and why? I'm interested in seeing where people find it useful to put their try/catch blocks in the hope that some general patterns might emerge. I'll post my two example answers in C++ but any language is fine. One location and reason per answer please. Thanks. ...

Browsers no longer reporting js errors - YUI history manager

I'm using YUI's browser history manager, and my browsers no longer report runtime errors. They will still show a parse error in the error console, but if I call a bogus function, for example, inside some event handler, the browser just stops all js processing it seems. Even firebug's debugger will just quit when I get to a line with an e...

YUI CustomEvent no errors being reported

Does anyone know how to get the below to report a javascript error? (any browser) <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"&gt; </script> <script type="text/javascript"> ObjWithEvent = { testEv...

Techniques for steming a possible flood of automatically generated e-mail when a website encounters errors.

For my current web development project I'm implementing a back end system that will flag errors and send an email to the administrator automatically with details about what occurred. Trapping the error and generating the email with appropriate error information is pretty straight forward; but a problem arises when one considers certain g...

To what extent should code try to explain fatal exceptions?

I suspect that all non-trivial software is likely to experience situations where it hits an external problem it cannot work around and thus needs to fail. This might be due to bad configuration, an external server being down, disk full, etc. In these situations, especially if the software is running in non-interactive mode, I expect th...

WinQual: Why would WER not accept code-signing certificates?

In 2005 i tried to establish a WinQual account with Microsoft, so i could pick up our (if any) crash dump files submitted automatically through Windows Error Reporting (WER). i was not allowed to have my crash dumps, because i don't have a Verisign certificate. Instead i have a cheaper one, generated by a Verisign subsidiary: Thawte. ...

Prevent wxPython from showing 'Unhandled exception' dialog

I have complex GUI application written in Python and wxPython. I want it to be certified for Windows Vista, so it has to crash in a way that causes Windows Error Reporting dialog (The one that asks "Do you want to send report to Microsoft?") to appear. This is relevant to test case no 32 from "Certified for Windows Vista Test Cases" doc...

PHP warning: headers already sent in Unknown

I'm looking for things that might trigger the following PHP warning: PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0 ...

How do I get an error report from a "Please tell Microsoft about this problem." dialog?

A program I wrote crashes on startup. (Win XP). A dialog "Please tell Microsoft about this problem." appears. I want to be told about the problem since it's my app. Thing is, clicking through (clicking link: 'View the contents of the error report'), the "Error Report Contents" dialog doesn't let my customers copy its contents to the cl...

Centralized error reporting in PHP

Hi all, is there a way to handle error reporting in a centralized manner in PHP? I'd like to be notified of all errors raised by my application by email. What's the best way to achieve this for a whole application? Thanks ...

Are there any modules or built in functions to do error reporting in Ruby?

Just wondering if there was any built in way to handle error reporting in Ruby? PHP does it on its own, Perl and Python you can import modules to use. Levi ...