How to fix the evaluating expression in the watch window during Fortran debugging

Al-Yahia Omar Sharief 25 Reputation points
2023-09-01T09:38:23.8866667+00:00

User's image

I am using Visual Studio with intel Fortran compiler. I used to debug Fortran code and evaluate some expressions and parameters using Watch window
Two weeks ago, visual studio made an update, from that time, when I want to find some variables or parameters the evaluating expression window keeps running as in the attached photo. and the visual studio crashes. I tried to reinstall again for several time as well as the intel compiler but still I could not solve the problem. Please advice me how to solve this issue

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Stijnman, Mark GSNL-PTX/E/S 80 Reputation points
    2023-09-13T16:18:40.84+00:00

    A thread on this issue on the Intel forum can be found here:

    https://community.intel.com/t5/Intel-Fortran-Compiler/Debugging-ifort-in-VS-2022-17-7-hangs-expression-evaluator/td-p/1513040

    There also seems to be a provisional fix available there.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-09-04T09:26:11.1233333+00:00

    Hi @AI-Yahia Omar Sharief, 

    Welcome to Microsoft Q&A! 

    Is your “Enable Just My Code” checked? (Tools > Options > Debugging > General)  

    You can manually delete the .suo file from the project folder and try again. 

    Besides, it may be related to Fortran Compiler, please report it in Intel Community

    Thanks for your understanding!

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.