I use this a lot when working on stuff that is new or while troubleshooting:
print_r($some_useful_variable_or_array); exit();
That way you not only know that the code progressed to the point where the exit happened but you also get some possibly useful output to see if things were working correctly.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.