<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with viewing global variables when in debug mode in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809117#M41810</link>
    <description>Hi Ian0907&lt;BR /&gt;&lt;BR /&gt;If the module has only variables, you can't set any breakpoints there. Please see the attached screenshot fiel ModuleVar.png. At the breakpoint, in the watch window, variables j and k can be seen as OM:: J, OM:: K.&lt;BR /&gt;That the variable J is accessible directly is, I think, because the main program is using it.&lt;BR /&gt;&lt;BR /&gt;The snapshot is created with IVF 11.1.065 with VS2005 on WinXP64. I used the default debug setting.&lt;BR /&gt;&lt;BR /&gt;Abhi</description>
    <pubDate>Tue, 12 Oct 2010 00:36:11 GMT</pubDate>
    <dc:creator>abhimodak</dc:creator>
    <dc:date>2010-10-12T00:36:11Z</dc:date>
    <item>
      <title>Updated Description: problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809111#M41804</link>
      <description>Dear all,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Firstly, I am 'semi-new' to Fortran so I can't describe my problem clearly and provide enough information, just let me know. I can explain it later again.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;B&gt;So here is the problem&lt;/B&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I am now working on a huge Fortran project (code) which contains numerous variables and subroutines. I made a copy of the original project, and changed several lines in one subroutine. Then I started debugging. Everything runs correctly from beginning to the end. The only thing is now I cannot view the variables defined in the module file. However, in the original project (code), this does not happen.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When I tried to debug the my COPIED Fortran code using breakpoint in the one of the subroutine, I can only view the local variables for the global ones (defined in the module) the debugger gave me message as 'cannot view register variables'.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Example:&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;module A&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;integer:: x&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end module&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;subroutine B&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;use A&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;integer:: y&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;.....&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;end subroutine B&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;So I set some breakpoints in subroutine B. I can view values for y, but for x the debugger gave me the error message.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Solutions Tried so far:&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;1. I compared 'project/property' for the original project and the copied one for everything. They are the SAME!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;2. Then I tried to create a new project, and add all the source files into that. The code run correctly, but still I can't view the variables defined in the module?!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using Fortran Complier 10.0.027 and Visual Studio 2005.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance.&lt;/DIV&gt;&lt;DIV&gt;--&lt;/DIV&gt;&lt;DIV&gt;Lan&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2010 20:42:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809111#M41804</guid>
      <dc:creator>lan0907</dc:creator>
      <dc:date>2010-10-11T20:42:25Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809112#M41805</link>
      <description>First of all, there are no "global variables" in Fortran. Subprograms may share variables through COMMON blocks or modules, and a compiler may provide methods to access external variables declared as global in C/C++ programs linked to Fortran subprograms.&lt;BR /&gt;&lt;BR /&gt;Secondly, if you want to be able to view in the debugger all variables in the source code, you have to prevent the optimizer from eliminating superfluous variables and allocating variables to registers, by choosing suitable compiler options.&lt;BR /&gt;&lt;BR /&gt;It would help if you were to provide a short example source code that illustrates what you are trying to accomplish.</description>
      <pubDate>Mon, 11 Oct 2010 20:56:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809112#M41805</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-11T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809113#M41806</link>
      <description>As mecej4 said, a short example is always useful.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, if you are referring to module variables, see if the following works:&lt;BR /&gt;&lt;BR /&gt;ModuleName:: ModuleVariableName&lt;BR /&gt;&lt;BR /&gt;The debugger should be able to show it. Of course, once again as mecej4 said, you also need to have correct compiler options enabled. For example, in this case of "parameters" you will need to enable the corresponding option -- /debug:parameters&lt;BR /&gt;&lt;BR /&gt;Abhi</description>
      <pubDate>Mon, 11 Oct 2010 21:08:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809113#M41806</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2010-10-11T21:08:49Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809114#M41807</link>
      <description>Thanks for the reply.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Ok, there is one module where I defined all the variables to be shared with all subroutines.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I can make up the one simple example.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;say:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;module A&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;integer:: x&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;end module&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;subroutine B&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;use A&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;integer:: y&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;.....&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;end subroutine B&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So I set some breakpoints in subroutine B. I can view values for y, but for x the debugger gave me the error message.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My guess is I did not choose the suitable complier options.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2010 21:19:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809114#M41807</guid>
      <dc:creator>lan0907</dc:creator>
      <dc:date>2010-10-11T21:19:54Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809115#M41808</link>
      <description>Hello Ian0907&lt;BR /&gt;&lt;BR /&gt;Is " A::x" also failing to show it? Are you building the project in a debug mode?&lt;BR /&gt;&lt;BR /&gt;Abhi</description>
      <pubDate>Mon, 11 Oct 2010 22:08:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809115#M41808</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2010-10-11T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809116#M41809</link>
      <description>I am sure that I used debug mode.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;A is defined as module, just todeclareall the variables. I tried to set a breakpoint in A, but it never stop at that part.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2010 22:49:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809116#M41809</guid>
      <dc:creator>lan0907</dc:creator>
      <dc:date>2010-10-11T22:49:10Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809117#M41810</link>
      <description>Hi Ian0907&lt;BR /&gt;&lt;BR /&gt;If the module has only variables, you can't set any breakpoints there. Please see the attached screenshot fiel ModuleVar.png. At the breakpoint, in the watch window, variables j and k can be seen as OM:: J, OM:: K.&lt;BR /&gt;That the variable J is accessible directly is, I think, because the main program is using it.&lt;BR /&gt;&lt;BR /&gt;The snapshot is created with IVF 11.1.065 with VS2005 on WinXP64. I used the default debug setting.&lt;BR /&gt;&lt;BR /&gt;Abhi</description>
      <pubDate>Tue, 12 Oct 2010 00:36:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809117#M41810</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2010-10-12T00:36:11Z</dc:date>
    </item>
    <item>
      <title>Problem with viewing global variables when in debug mode</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809118#M41811</link>
      <description>Hi Abhi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for help. However, I can't open your attached files.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;To make my problem clear, I am now working on a huge Fortran project (code) which contains numerous variables and subroutines. I made a copy of the original project, and changed several lines in one subroutine. Then I started debugging. Everything runs correctly from beginning to the end. The only thing is now I cannot view the variables defined in the module file. However, in the original project (code), this does not happen.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;--&lt;/DIV&gt;&lt;DIV&gt;Lan&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2010 01:24:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Updated-Description-problem-with-viewing-global-variables-when/m-p/809118#M41811</guid>
      <dc:creator>lan0907</dc:creator>
      <dc:date>2010-10-12T01:24:43Z</dc:date>
    </item>
  </channel>
</rss>

