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

An error occurred while trying to open an editor in IFX Debugging

Haku
Novice
1,478 Views

I have a simple piece of code, and the debugging mode is set to Full messeage.

when debugging, I first hit the breakpoint as shown in the 5th image , after stepping into the code, the error from the 6th error appears,

"""

( Locating source for 'C:\Users\baihaodong\source\repos\test_2\test_2\test_2.f90'. (No checksum.)
Found partial match #1: C:\Users\baihaodong\source\repos\test_2\test_2\test_2.f90 (No checksum.)
The debugger will use the source at location 1.
Opening file 'C:\Users\baihaodong\source\repos\test_2\test_2\test_2.f90' in the source file editor failed. Operation not supported. Unknown error: 0x80070057.)

"""

after this point, I can step into the code, then I go to 7th image.

This error appears every time  I step into a subroutine which located in a different file.

Previously I used ifort with almost the same configuration and it works well, could anyone provide a solution to this issue?


Haku_0-1725680388537.pngHaku_1-1725680396678.pngHaku_2-1725680402699.pngHaku_3-1725680409168.png

Haku_4-1725680492369.png

Haku_5-1725680541771.png

Haku_7-1725680648083.png

 

 

Labels (2)
0 Kudos
4 Replies
Sam_Quan
Beginner
398 Views

I have similar issue with my project, Any solution? 

0 Kudos
Haku
Novice
301 Views

Actually, I have no idea what's going on, I used to think it was related to Japanese Kanji Character, but even use only English with UTF-8 encoding, the problem still appears occasionally. It seems to be related to the debug information, because after rebuilding the project, the issue occurs in some files-even in cases where it didn't appear after some modifications.

However, since this problem doesn't affect the actual debugging process, I just close this window and continue debugging.

0 Kudos
jonejames235
Novice
282 Views

The error Opening file ... in the source file editor failed. Operation not supported. Unknown error: 0x80070057 usually happens when the debugger finds the source file but can’t load it into the editor. This often occurs when stepping into subroutines in a different file if debug symbols or editor integration aren’t fully aligned.

Try these steps:

  1. Rebuild all files with full debug info: Use ifort -g -traceback (or your IDE equivalent) for all modules and subroutines to ensure the debugger can map symbols to source.

  2. Verify file paths: Long paths, special characters, or spaces in folder names can cause editor failures. Try shortening paths if possible.

  3. Check editor integration: Make sure the debugger is set to a compatible editor for Fortran files (Visual Studio, VS Code with proper extensions, etc.).

  4. Clear old build artifacts: Delete .obj, .mod, .pdb files, then rebuild to remove stale debug info.

  5. Step into using fully qualified module paths: Ensure subroutines in separate files are compiled and linked consistently.

If these don’t help, it’s often resolved by a full clean rebuild of all modules in one workspace with consistent debug flags.

0 Kudos
Nolan_H
Novice
191 Views

2025.2 - 2025.3 IFX does this for me often and randomly as well.  You can hit F11 again and it usually still steps into the routine.  I have not found a version of IFX that doesn't do this, other than reverting back to IFORT.

0 Kudos
Reply