|
Posted by ZeldorBlat on 10/25/07 00:31
On Oct 24, 4:52 pm, turnitup <same@same> wrote:
> I am in the process of transforming a procedural code base into an OO
> code base. The code lends itself to this refactoring and it is proving
> an effective exercise.
>
> However, I am running into a few irritations.
>
> I am using __autoload to load class files corresponding to code names.
>
> I've cranked up error reporting, but if for some reason there is a
> syntax error or whatever in a class, the application crashes with no
> explanation. The bug hunt takes ages and lots of echoing.
>
> Is there anything I can do to help myself? Use of assert, or exceptions,
> or try-catch handling?
You might have turned up error reporting, but did you enable display
errors? If not you won't see them. You should always enable
display_errors when developing, and disable it in production. In
production use log_errors so your error messages go to a file instead.
[Back to original message]
|