Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28459 Discussions

How to prevent console window from closing when the program successfully terminates in debug mode

matrosoe
Beginner
1,386 Views
Hello,

I have a fortran program that outputs text to the console upon termination. Before I was using the old Compaq compiler and when launched in debugging mode the console window would not close upon successful termination of the program. However, my new Intel 2011 Fortran compiler does. I then have to run the program separately in a command prompt to see this output data. Is there a way to prevent the console from closing automatically upon termination?

Thank you
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,386 Views
This is a Visual Studio behavior and is the same as with CVF. If you start in Visual Studio with "Start without debugging", then the console window does not close. There is no way to change the Visual Studio behavior here, but you could set a breakpoint at the last line of the program or insert a read from the console.
0 Kudos
Reply