I tried to debug with command: "mpirun -debugger gdb -debug -np 4 my_program"
Surely, it starts the debugger, but it doesn't start the debugging nor it loads any of the my_program threads into the debugger. If I start debugging manually ("file my_program", then "run"), I can start only one thread of my_program.
On the contrary when I debug with "mpirun -np 4 xterm -e gdb my_mpi_application" the four debugger windows are started with separate thread each, just as it should be.
Since I will be using debugger on a remote computer I can only run gdb in console mode. Can anyone help me with this?
Thank you in advance,