Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29262 ディスカッション

line numbers for diganostic visual fortran program

Stanley_W_K_Shum
ビギナー
1,578件の閲覧回数
how do i turn on the line numbers for the visual fortran program so that i can see the error corresponding to the line numbers at the error output?
0 件の賞賛
1 解決策
Les_Neilson
高評価コントリビューター II
1,578件の閲覧回数
how do i turn on the line numbers for the visual fortran program so that i can see the error corresponding to the line numbers at the error output?

I presume you mean the editor in Visual Studio ?
From the menu : Tools -> Options -> Text Editor -> All Languages -> General
There is a tick box to turn on line numbers

I presume you know that if you double-click the error line in the outputit will open the source file with the cursor at that line ?

Les

元の投稿で解決策を見る

3 返答(返信)
Les_Neilson
高評価コントリビューター II
1,579件の閲覧回数
how do i turn on the line numbers for the visual fortran program so that i can see the error corresponding to the line numbers at the error output?

I presume you mean the editor in Visual Studio ?
From the menu : Tools -> Options -> Text Editor -> All Languages -> General
There is a tick box to turn on line numbers

I presume you know that if you double-click the error line in the outputit will open the source file with the cursor at that line ?

Les
rase
新規コントリビューター I
1,578件の閲覧回数
I presume Stanley is refering to the line numbers in the source modules when getting an error message exception. I had the same question a few days ago, but by playing around with the VS/project settings I finally managed to get the line numbers in the error trace after an exception. I cannot remember which option I changed, so I would be grateful if an expert could tell me what I set right unconsciously.
Les_Neilson
高評価コントリビューター II
1,578件の閲覧回数
Quoting - rase
I presume Stanley is refering to the line numbers in the source modules when getting an error message exception. I had the same question a few days ago, but by playing around with the VS/project settings I finally managed to get the line numbers in the error trace after an exception. I cannot remember which option I changed, so I would be grateful if an expert could tell me what I set right unconsciously.

Ah, you mean run-time errors?
Could it be the Project->Properties->Fortran->RunTime->Generate Traceback setting?

Les
返信