<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hello, </span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I am writing about how to keep the console window open on exceptions during debug of a parallel code (either F5 or Ctrl+F5).</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I am running MPICH2 FORTRAN program in Visual Studio 2010, everything works fine, expect that I could not see the exception/error messages on the console window, it closes right after the program exits on exceptions. </div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I do know how to keep the console window open when program meets the end, or put a read statement to pause the program during the execution. </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I did some google search, the only relevant solution I could find is </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><a href="http://www.boost.org/doc/libs/1_36_0/libs/test/doc/html/utf/usage-recommendations/dot-net-specific.html" target="_blank">http://www.boost.org/doc/libs/1_36_0/libs/test/doc/html/utf/usage-recommendations/dot-net-specific.html</a>, which is about making debugger break at the point the failure by adding extra command line argument and seeing the runtime error in the output window. However, it looks like something for a serial code without mpiexec.exe in the command line, and I am not a advanced VS user, so I don't know how to do it for a parallel code, or if there is any other way out.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thanks in advance!</div><div><br></div>-- <br>Feng Xiao<div><br></div>
<div>Doctoral Student</div><div>Petroleum Engineering</div><div>Colorado School of Mines</div><div><br></div><div>Cell 918-814-2644</div><div><br></div>
</div>