<?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 Re: Annoying debugging behaviour in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863089#M69821</link>
    <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;This sounds like a problem we fixed about a year ago. Which specific version of the compiler are you using? (10.?.???)&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2008 13:05:47 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2008-10-22T13:05:47Z</dc:date>
    <item>
      <title>Annoying debugging behaviour</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863088#M69820</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;While debugging for some more complex statements in VS2005 you have to press the F10 button (step over)many, many times to complete the F90 statement, looks very strange.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;E.g. for statement &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;fac1s =&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;float&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;(itime -ictime(ic,ids)) &amp;amp;&lt;FONT size="2"&gt;
&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; /&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;float&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;(ictime(ic,ids+1)-ictime(ic,ids))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;you have to press the F10 button 20(!) times in order to complete it, and arrive at the next statement. It looks as if VS2005 is popping a stack, or what. I know for sure that with my previous IDE -&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt; Compaq Vis. Fortran 6.0 as part of Vis. Studio C++ - you only had to hit the button once !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;Another strange behaviour is debuggingstatements with whole array assignments (size approx. 300). If you step thru a block with onlywhole assigments using F10 button, it takes many, many seconds to complete each indiv. statement. But, when you define a breakpoint just after the block, it immediately jumps to the breakpoint in a split second ??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;As both types of behaviourget rather annoying after some time, I would be nice if it's possible to speed things up !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;Txs, Antoon&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2008 09:01:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863088#M69820</guid>
      <dc:creator>Antoon</dc:creator>
      <dc:date>2008-10-22T09:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying debugging behaviour</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863089#M69821</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;This sounds like a problem we fixed about a year ago. Which specific version of the compiler are you using? (10.?.???)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2008 13:05:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863089#M69821</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-10-22T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying debugging behaviour</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863090#M69822</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;This sounds like a problem we fixed about a year ago. Which specific version of the compiler are you using? (10.?.???)&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I see similar to what the OP described with 10.1.024. I thought that was the latest in the 10.1 series, but I see a 10.1.025 was released a few months ago, so I'll download and try that.&lt;/P&gt;
&lt;P&gt;Elaborating in my case - I need to whack "Step into" multiple times when entering a subroutine that has array sections in its argument lists - apologies if my terminology is not right - something like "call foo(..., bar(:,:,2), ...)".&lt;/P&gt;
&lt;P&gt;I also seem to have to step multiple times to get over some statements that are continued over multiple lines and|or contain certain function calls and|or have array sections and|or have have had a breakpoint (apologies for not being very clear what the criteria is to get this behaviour!).&lt;/P&gt;
&lt;P&gt;Stepping off a write statement can sometimes result in whacky jumps to a following close statement. Hit step again and you go back to where you expect to be. This can be fun - unexpected trips to strange destinations are often exciting.&lt;/P&gt;
&lt;P&gt;I have previously wondered whether some of this behaviour was intentional - figured there must have been something going on at the assembly level within a statement that people might have wanted to be able to conveniently step to.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;IanH&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2008 22:00:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863090#M69822</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2008-10-22T22:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying debugging behaviour</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863091#M69823</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Same behaviour seen with 10.1.025. Example code (big_array being allocatable is important):&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE&gt;[cpp]MODULE It
  IMPLICIT NONE 
CONTAINS
  SUBROUTINE SubA(n1, n2, n3, v1, v2)    
    INTEGER, INTENT(IN) :: n1, n2, n3
    REAL, INTENT(OUT) :: v1(n1,n2,n3), v2(n1,n2,n3)    
    !**** 
    v1 = 1.0    ! These lines takes ages to step over
    v2 = 2.0    
  END SUBROUTINE SubA  
END MODULE It

PROGRAM Test
  USE It
  REAL, ALLOCATABLE, DIMENSION(:,:,:,:) :: big_array
  INTEGER, PARAMETER :: n1 = 100, n2 = 100, n3 = 2
  !**** 
  ALLOCATE(big_array(n1,n2,n3,2))
  ! Up to nine presses of F11 (step-in) required to get into SubA, F10 
  ! (step-over) can result in jumping ahead to the write (and then back 
  ! again...)
  CALL SubA( n1, n2, n3,  &amp;amp;
      big_array(:,:,:,1),  &amp;amp;
      big_array(:,:,:,2) )      
  WRITE(*,*) 'Hello world'     
END PROGRAM Test[/cpp]&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Build log:&lt;/P&gt;
&lt;PRE&gt;Compiling with Intel Fortran Compiler 10.1.025 [IA-32]...&lt;BR /&gt;ifort /nologo /Zi /Od /gen-interfaces /stand:f03 /warn:all /module:"Debug" /object:"Debug" /traceback /check:all /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCbin" "C:FortranTestTestFortran.F90"&lt;BR /&gt;Linking...&lt;BR /&gt;Link /OUT:"DebugFortranTest.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:FortranTestdebugfortrantest.exe.intermediate.manifest" /DEBUG /PDB:"C:FortranTestdebugfortrantest.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:FortranTestdebugfortrantest.lib" "DebugTestFortran.obj"&lt;BR /&gt;Link: executing 'link'&lt;BR /&gt;&lt;BR /&gt;Embedding manifest...&lt;BR /&gt;mt.exe /nologo /outputresource:"C:FortranTestdebugfortrantest.exe;#1" /manifest "C:FortranTestdebugfortrantest.exe.intermediate.manifest"&lt;BR /&gt;&lt;BR /&gt;FortranTest - 0 error(s), 0 warning(s)&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;I haven't been able to reproduce the jumping from READ (oops I think incorrectly said WRITE in the previous post) statements to CLOSE statments in a minimal sample, but it still seems to happen under 10.1.025.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;IanH&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2008 03:07:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863091#M69823</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2008-10-23T03:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying debugging behaviour</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863092#M69824</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Hi Steven,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I am using this version:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Intel Fortran Compiler Integration for Microsoft Visual Studio 2005, 10.1.3885.2005, Copyright (C) 2002-2007 Intel Corporation&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Tx, Antoon&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:51:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Annoying-debugging-behaviour/m-p/863092#M69824</guid>
      <dc:creator>Antoon</dc:creator>
      <dc:date>2008-10-23T05:51:11Z</dc:date>
    </item>
  </channel>
</rss>

