- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I have a project which I built using Intel Fortran 8.0 and am trying to debug it in MS Visual Studio. I can set a break point but when I run the code in the debugger, it puts a question mark in the red circle and continues on to the end of the program. I have changed the program so I can get it to stop at a break poiint, but the source code and the yellow arrow marker are misaligned by 5 lines with the yellow arrow 5 lines too far into the source file. I have another similar project that I built a couple of years ago and it works fine. We have not upgraded the Intel compiler or MS Studio since then, so I am baffeled as to why this is happening.
Glen
Glen
- Marcas:
- Intel® Fortran Compiler
Link copiado
3 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
This is usually caused by the file listed under Properties..Debug not being the same one that is the output of the linker.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Steve,
The debug was the same as the output of the linker. So that was not the problem.
We decided that perhaps the extra # lines inserted by fpp might be the culprit, so we added the -P option to the fpp command and rebuild the *.for files. This removed these extra # lines. I guesss they are just markers and am not sure how they are used. But, now the debugger works fine. We had used cpp in the earlier code version, so it did not have these extra # lines in the *.for files. That explains why the earlier code version worked in the debugger and the current one did not.
Thanks again for your help.
Glen
The debug was the same as the output of the linker. So that was not the problem.
We decided that perhaps the extra # lines inserted by fpp might be the culprit, so we added the -P option to the fpp command and rebuild the *.for files. This removed these extra # lines. I guesss they are just markers and am not sure how they are used. But, now the debugger works fine. We had used cpp in the earlier code version, so it did not have these extra # lines in the *.for files. That explains why the earlier code version worked in the debugger and the current one did not.
Thanks again for your help.
Glen
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Ah, now I remember. The 8.0 compiler did have a problem with fpp-processed files and the debugger. The issue was that the "original source line markers" (those # lines) were incorrect for some fpp-generated sources. This is fixed in current versions.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora