TotalView is a very powerful, flexible debugger for parallel and multithreaded programs. It has many capabilities beyond those described here, which are just enough to get you started. For more details, see the TotalView User's Guide, and particularly the section on mpich.