A simple yet very practical way to debug pvserver with mpi and gdb.
mpirun -np 4 xterm -e gdb ./bin/pvserver
This will open 4 xterm windows, one for each process. You can then press
r to run on each of the instance and place breakpoints as needed.
This does not allows to create breakpoints on all instance with a single command, they need to be repeated.
You can then connect to the pvserver as usual.