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

how can I debug the main code with an input file

bao_z_
Beginner
809 Views

I am new for Intel Visual Fortran Compiler. I have a Fortran code which include a main code and a input code, the main code can compile to a .exe file and then read the input file to get necessary input number. my question is how can I debug the main code with the input file so that I can see the parameters change.

0 Kudos
1 Reply
Lorri_M_Intel
Employee
809 Views

Go to Project->Properties->Debugging

There will be a field with a name something like "Command arguments".  

If you run your executable as:

            foo.exe < myinput.txt

put " <  full-directory-spec/myinput.txt"  in that field.

The easiest way to test is then to select "Start without Debugging" and make sure the input file can be found, and *then* start the true debugging process.

               --Lorri

0 Kudos
Reply