2012
07.15
07.15
I just copy&paste a piece of raw code, just for myself, to find it easily.
So I’m using this method to track method calling order in applications/frameworks.
I add this to my code.
1 2 3 4 5 6 7 8 9 | function trackCode($e) { echo "<b>MSG:</b> " , $e->getMessage(); echo "<pre>"; print_r( $e->__toString() ); echo "</pre>"; } set_exception_handler('trackCode'); |
And add this to my mighty function, to know where are we:
1 | throw new Exception('Here is my code point'); |
No Comment.
Add Your Comment