Please refer to the TechBase article, http://techbase.kde.org/Development/Tutorials/Debugging/Debugging_IOSlaves
Happy debugging.