- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am debugging my (Fortran) application using the latest versions of Base Kit and HPC Kit, both of them reinstalled after installing Windows updates, and if I add an array or a module variable (module::variable) to Watches, I get an error "Undefined variable" instead of their value(s). Local variables are OK.
Also, pressing F11 (Step Into) on a row with a subroutine (X) call moves the cursor to the first row of the subroutine containing the call to the subroutine (X), multiple times. After the subroutine (X) is finally stepped into, the cursor is placed on a row with a N-th statement, with genrally N>1. In the subroutine (X), even local variables' values are not shown in Watches; I see "Undefined variable".
I tried rebuilding the solution, but it did not help.
What might have gotten wrong? What should I try to make debugger and watches work normally again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found the cause of the problem and I need to apologize here.
When working with configurations, creating a traceback one, the debug configuration's optimization option was changed from /Od to /O3. I am not aware of having done this change, anyway, this then caused everything I described in my previous posts. (blush)
Debugger and Watches work well now, with /Od being the optimization option.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the syntax modulename::variablename.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using this syntax, yet the value is not shown.
In case of arrays, I am trying to add a specific array element, e.g. array(i,j,k), to Watches, but array is reported as undefined variable. In this particular example, I am passing the (allocatable) array to a subroutine where I placed a breakpoint to check array values.
This worked well in previous versions of oneAPI, integrated to VS 2019, but I do not want to get back to older versions as the latest one contains certain bugfixes which got me rid of an ICE (Internal Compiler Error).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found the cause of the problem and I need to apologize here.
When working with configurations, creating a traceback one, the debug configuration's optimization option was changed from /Od to /O3. I am not aware of having done this change, anyway, this then caused everything I described in my previous posts. (blush)
Debugger and Watches work well now, with /Od being the optimization option.

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