- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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