ddmitrie wrote: |
Quote: | I'm not really sure what else there is to say... break on E_NOTICE, don't break on E_STRICT |
Try to debug without breaking on anything, set a breakpoint on the last statement and analize all the errors collected on the ERRORS tab. |
How exactly does that help me if I don't know what I'm looking for? Am I supposed to break every ten lines of every single file and re-read the debug output? You wanted an example of what I was asking, which it is. It's hardly a real world scenario.
This is the issue, that I'm sure many people besides me deal with; I develop locally using PHP5. The product is PHP4 compatible. I want to know about things like 'undefined variable'... they're quite important because they shouldn't be occuring. I don't, however, have the slightest care for E_STRICT messages. Now, if I'm running the app through the debugger, and I want to catch E_NOTICEs, I have to break on every E_STRICT as well. I have no choice in the matter because dbg seems to see them as exactly the same thing, in terms of debug levels.
I want to be able to set the debugger to 'Break on errors, warnings and notices' but NOT to break on E_STRICT. Since you have no real answer to the question, I guess it comes down to the fact that phpEd needs a fourth debug level. 'Break on errors, warnings, notices, and stricts'.
php docs wrote: |
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2047 E_ALL
2048 E_STRICT
Warning:
With PHP > 5.0.0 E_STRICT with value 2048 is available. E_ALL does NOT include error level E_STRICT.
|
E_ALL does not include E_STRICT, because they're erroneous messages. They mean nothing in 99.95% of all cases, especially in a PHP4 compatible script.