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

debugging and input from Console

Mike896
Beginner
840 Views

Dear All,

When debugging, if there are so many data needs to be inputted, what is the automatic way to enter those data in Console Mode?

thank you very much in advance.

Mike

0 Kudos
7 Replies
ender01
New Contributor I
841 Views
Quoting - Mike896

Dear All,

When debugging, if there are so many data needs to be inputted, what is the automatic way to enter those data in Console Mode?

thank you very much in advance.

Mike

Hi Mike,

Is there a reason that you can't set up an input file and change the unit the program reads the data from?

Rich

0 Kudos
Mike896
Beginner
841 Views
Quoting - ender01

Hi Mike,

Is there a reason that you can't set up an input file and change the unit the program reads the data from?

Rich

Oh, the input lines are separate in many lines in many places. Also this program is a package.

Mike

0 Kudos
Steven_L_Intel1
Employee
841 Views

One way is to put all the input data in a file and then, in the Project > Debugging property page, put this under Command Arguments:

< data.txt

where data.txt is a file in the project folder that contains the input data. The program will then read from the data file instead of the console.

Another way is to simply paste the input into the window.

0 Kudos
Mike896
Beginner
841 Views

Another way is to simply paste the input into the window.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

But the output window is Console (DOS) window. I cannot copy/paste the input parameters into a DOS-like window.

Mike

0 Kudos
Steven_L_Intel1
Employee
841 Views

Sure you can. You can either use the console window's menu (click on the small icon in the upper left corner) or right click in the window (the paste occurs on the right click.)

0 Kudos
Mike896
Beginner
841 Views

I usually use Ctrl-V. I should try another way.

Thank you indeed, Steve.

Mike

0 Kudos
Steven_L_Intel1
Employee
841 Views

Ctrl-V doesn't work in console windows. Don't ask me why...

0 Kudos
Reply