- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get the message "An unspecified error has occurred" when I try to check the array in the panel of local variables in Visual Studio 2019. I have HPC toolkit installed. The compiler seems to work as it should, but I cannot check variables!Note that those variables exist and they are assigned.
I attach a screenshot...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have complained about this before. The "fix" is to install the "Intel Distribution for GDB" from the OneAPI Base Toolkit (and anything it requires.) I have asked Intel to move the Fortran debugging support into the HPC toolkit.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the entries in the column "Types" in your screenshot, I conclude that the Fortran integration is absent or defective. The type names indicate that the VS debugger thinks that the variables belong to a C/C++ program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right, the type are not fortran-like. So, can it be my too recent version of Visual Studio 2019? It is version 16.8.3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have complained about this before. The "fix" is to install the "Intel Distribution for GDB" from the OneAPI Base Toolkit (and anything it requires.) I have asked Intel to move the Fortran debugging support into the HPC toolkit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For a long time, until I read one of Steve's posts on this topic, I had thought that GDB was only needed if the installation was on a system with a Xeon Phi or similar coprocessor, which used a version of Linux as the OS even on a Windows host.
Just now, I did a "Modify" to add GDB on one of my PCs running Windows 10, and the installer insisted on adding DPC++ and a bunch of other stuff that were "prerequisites", a download of over 160 MB, and an installation that took nearly half an hour after saying, "It may take up to 5 minutes".
Finalizing installation. It may take up to 5 minutes...
Updating package state...
----------------------------------------------------------------------------------------------------
01/08/2021 18:08:12:529 : 4204 : MESSAGE : Start install/modify sequence execution.
...
01/08/2021 18:36:11:161 : 4204 : MESSAGE : Install sequence execution is completed successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, this worked! I had to install a lot of supplementary stuff, though...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it is entirely unnecessary and inappropriate. I hope that the Intel support team is able to convince the install developers of that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will note that GDB (or gdb, really) has absolutely nothing to do with Fortran debugging support in Visual Studio. The Intel install team decided on their own, that since it was "debugging", that it would get lumped in with the only other debugging stuff in oneAPI.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page