Debugging tools and condition handling