Intel® MPI Library User's Guide for Windows* OS
Getting Debug Information
Environment variable I_MPI_DEBUG provides a very convenient way to get information from an MPI application at runtime. You can set value of this variable from 0 (the default value) to 1000. The higher the value, the more debug information you get.