Debugging Intel compiled code on Windows - Visual Studio Code

I am following up from an issue a VS Code user encountered a while back with Intel Fortran compilers on Windows and Debugging. Essentially, the problem faced was that there was no suitable Expression Evaluator for Intel compilers on Windows. Therefore, the Debug Adaptor cppvsdbg (closed-source and IP owned my Microsoft) is not capable of resolving the symbols from the object file.

This ultimately means that code compiled with Intel compilers cannot be debugged in VS Code on Windows.

I was wondering if someone from Intel could share some thoughts on this. Is Intel aware of this limitation? Would Intel consider implementing such feature for VS Code? Are there any workarounds you can suggest for your Windows users?

I think this is quite an important feature to have since:

  • Intel compilers are now free to use, thus making it an excellent alternative for Windows users that don’t want to figure out how to install gfortran
  • VS Code in Fortran already has a pretty big user base in our community see:


  • Linting from ifort/ifx is already support in VS Code and Walkthroughs on how to setup the Intel compilers will be included in the future
  • I don’t have any plans on writing a Visual Studio extension for Fortran to support the Language Server Protocol. So Windows users that want Fortran LSP support will either have to stick to VS2019, switch to VS Code and lose debugging capabilities or move to a different code editor for development with LSP and still use VS for debugging (maybe there is another solution that I am unaware off).

PS If you would rather have this conversation in private, for whatever reason, please PM me or send me an email at

As far as I know, Intel has its own distribution of gdb, which tends to be included in the OneAPI suite, and I used to use it to debug ifort code on Windows, it should work.

I don’t think the debug adapter for gdb (cppgdb) works on Windows. The only vscode adapter designed for Windows AFAIK is cppvsdbg. For everything else you have to rely on some Unix shell.

@greenrongreen Apologies if you are not the right person to ping for this, but could you pass this along to the appropriate team?

An increasing number of users has been posting about ifort/ifx and VS Code debugging on Windows, with the latest being visual studio code - VSCode with Intel Fortran debugger: debugging window doesn't show allocatable variables - Stack Overflow

1 Like