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

Debugging in Composer XE 2013

Webster__William
Beginner
630 Views

I have just downloaded this latest version of the Fortran compiler and tried to debug changes to an existing project that was created using Composer XE 2011.  When I tried to look at several variables using the watch list I get the error "Cannot view register variable".  I did not get this error using XE 2011 and it appears that I cannot return to use XE 2011 since XE 2013 converted the project information that makes it inaccessible to XE 2011.  I suspect that there are some project settings that need to be changed but I cannot figure out which should be changed.  I am running using the "Debug / WIn 32" option and the compiler directives are the following:

/nologo /debug:full /O2 /extend_source:132 /Qdiag-error-limit:500 /debug-parameters:all /warn:interfaces /real_size:64 /module:"Debug\\" /object:"Debug\\" /Fd"Debug\vc100.pdb" /traceback /check:bounds /libs:static /threads /dbglibs /c

What can I do to enable the watch list?

0 Kudos
2 Replies
Webster__William
Beginner
630 Views
Whoops! On review I noticed that the optimization level was set to 02. When I changed this to 0d, the watch window worked normally. Problem resolved!
0 Kudos
Les_Neilson
Valued Contributor II
630 Views
Note the original message is not an "error" it means that the compiler has optimised the code such that the value of the variable is being held in a register and not in memory. It is usual when debugging to turn optimisation off. However in debug mode you can view the registers (Debug -> Windows -> Registers) so if you know which one is being used for your data then you can view it. Les
0 Kudos
Reply