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

Cannot find source code when debugging IFX in VS2022

CHobbs1
Nuevo Colaborador I
3.286 Vistas

I have VS Pro 2022 Version 17.10.4

Intel Fortran Compiler 2024.1

Compiled code with IFX.

When I put a break point in a line of code in main routine the execution stops at the line.  When I press F11 to step into the subroutine I get the message that *.for of the main code that I stopped execution in could not be found.  

 

I made the mistake of upgrading the VS2022 when the previous version showed signs of corruption.  I also upgraded the OneAPI base and HPC toolkit.  I do see that these versions of the compiler and VS have not been validated.  

 

As I am unable to find the Intel registration center to put in a support ticket, I am hoping someone here might help.

Suggestions on how to get back to work would be greatly appreciated.  Thank you.

0 kudos
1 Solución
CHobbs1
Nuevo Colaborador I
2.998 Vistas

I was having problems and thought the installation of either VS2022 or the compiler got corrupted.  So, I updated both.  Since you have not validated the pair, I am in new territory.  Andrew's point about starting over from scratch would be the best bet, but given the time and intricacy in making sure everything is uninstalled and all hidden dll's are deleted is rather daunting. 

 

I have found that putting a break point at a line in the code that calls a subroutine does stop at program execution at that line; however, as stated above, pressing F11 to step into the subroutine results in a screen indicating that the CALLING source code cannot be found. I have since found that pressing F11 again does result in the debugger stepping into the subroutine.  I had not thought to press F11 twice to accomplish my goal. I reckon I will stick with what I have for the moment.  Thank you.

Ver la solución en mensaje original publicado

7 Respuestas
andrew_4619
Colaborador Distinguido III
3.230 Vistas

I have not seen that before however I am guessing the routine keyboardInput that you are stepping into is in the file keyboardInput.for and it is that file that isn't found.  I would clean and full rebuild your project and ensure that ALL the source files have been compiled successfully with debug settings and that your link command is not pulling in some non-debug obj files. 

CHobbs1
Nuevo Colaborador I
3.186 Vistas

I appreciate the thoughts, Andrew, but the blow up happens when I try to step into a subroutine from the main and the VS2022 says ThreeDVisualizer.for not found even though that is the routine I was activitly stepping through to get to the subroutine I wanted to step into.  If I put a breakpoint inside the routine I wanted to step into, then it will run to that breakpoint.  

 

This version of VS2022 and Intel Compiler are behaving in a way that tells me I may have a difficult 6 months or so trying to code until it gets fixed by the crew at Intel.  I cannot debug programs outside Visual Studio.  So, I'm kinda stuck.

andrew_4619
Colaborador Distinguido III
3.163 Vistas

Well I and others have used IFX 2024.1 in VS 2022 which suggests to me that you have a specific problem with the project or installation. Why not have a fresh start with the latest compiler?

 

Devorah_H_Intel
Moderador
3.074 Vistas

https://supporttickets.intel.com/  to submit a support ticket 


@CHobbs1 wrote:

 

....

As I am unable to find the Intel registration center to put in a support ticket,  ...


 

Devorah_H_Intel
Moderador
3.074 Vistas

Did you have this issue with the debugger using previous versions of VS? What was the version?

CHobbs1
Nuevo Colaborador I
2.999 Vistas

I was having problems and thought the installation of either VS2022 or the compiler got corrupted.  So, I updated both.  Since you have not validated the pair, I am in new territory.  Andrew's point about starting over from scratch would be the best bet, but given the time and intricacy in making sure everything is uninstalled and all hidden dll's are deleted is rather daunting. 

 

I have found that putting a break point at a line in the code that calls a subroutine does stop at program execution at that line; however, as stated above, pressing F11 to step into the subroutine results in a screen indicating that the CALLING source code cannot be found. I have since found that pressing F11 again does result in the debugger stepping into the subroutine.  I had not thought to press F11 twice to accomplish my goal. I reckon I will stick with what I have for the moment.  Thank you.

andrew_4619
Colaborador Distinguido III
2.966 Vistas

if the subroutine you are stepping into has args that are functions you step into those first and they may not be available....

Responder