Sometimes my scripts produce an error, mostly a Warning. I have sometimes an idea why this happens, but I have also no clue sometimes why it happens.
Now my question: Is it possible that if a warning gets showed, I can see for what was in the variable?
"Warning: Invalid argument supplied for foreach() in ....";
I get this message but no clue, what was in the variable. The problem is, it's a script running few hours, with different data, so it's hard to reproduce it. Because, I don't know what was in the variable.
I need this for all kind of Warnings / Errors / Notice / Fatal Error etc.
Thanks for the help.
P.S.