Improved debuging tool