<?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 Bug in debug mode in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Bug-in-debug-mode/m-p/994201#M28021</link>
    <description>Say I have the following code:&lt;BR /&gt;&lt;BR /&gt;integer :: i, j, m, n, loc1&lt;BR /&gt;&lt;BR /&gt;loc1=65&lt;BR /&gt;m=1&lt;BR /&gt;n=1&lt;BR /&gt;j=1&lt;BR /&gt;&lt;BR /&gt;DO i=1,500&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO WHILE(j.lt.loc1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=j+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m=m+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(n.eq.1000)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=n+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END DO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=0&lt;BR /&gt;END DO&lt;BR /&gt;&lt;BR /&gt;The bug I'm encountering is this:&lt;BR /&gt;&lt;BR /&gt;If I put a breakpoint on the line "DO WHILE (j.lt.loc1)" before 'Start Debugging' and I choose a breakpoint condition of m=1 is true, with each execution of the inner loop the debugger &lt;SPAN style="text-decoration: underline;"&gt;does not increment the variable m&lt;/SPAN&gt; however the variable n increments by 1 as it should.&lt;BR /&gt;&lt;BR /&gt;Has anyone else encountered this problem??&lt;BR /&gt;&lt;BR /&gt;If I put m=5 before 'Start Debugging' then it will execute the inner loop properly until m=5 and n=5, then thereafter m will remain 5!&lt;BR /&gt;&lt;BR /&gt;This doesn't make any sense to me...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Aug 2012 22:21:10 GMT</pubDate>
    <dc:creator>Ashley_Weinstein</dc:creator>
    <dc:date>2012-08-27T22:21:10Z</dc:date>
    <item>
      <title>Bug in debug mode</title>
      <link>https://community.intel.com/t5/Software-Archive/Bug-in-debug-mode/m-p/994201#M28021</link>
      <description>Say I have the following code:&lt;BR /&gt;&lt;BR /&gt;integer :: i, j, m, n, loc1&lt;BR /&gt;&lt;BR /&gt;loc1=65&lt;BR /&gt;m=1&lt;BR /&gt;n=1&lt;BR /&gt;j=1&lt;BR /&gt;&lt;BR /&gt;DO i=1,500&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO WHILE(j.lt.loc1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=j+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m=m+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(n.eq.1000)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=n+1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END DO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=0&lt;BR /&gt;END DO&lt;BR /&gt;&lt;BR /&gt;The bug I'm encountering is this:&lt;BR /&gt;&lt;BR /&gt;If I put a breakpoint on the line "DO WHILE (j.lt.loc1)" before 'Start Debugging' and I choose a breakpoint condition of m=1 is true, with each execution of the inner loop the debugger &lt;SPAN style="text-decoration: underline;"&gt;does not increment the variable m&lt;/SPAN&gt; however the variable n increments by 1 as it should.&lt;BR /&gt;&lt;BR /&gt;Has anyone else encountered this problem??&lt;BR /&gt;&lt;BR /&gt;If I put m=5 before 'Start Debugging' then it will execute the inner loop properly until m=5 and n=5, then thereafter m will remain 5!&lt;BR /&gt;&lt;BR /&gt;This doesn't make any sense to me...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2012 22:21:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Bug-in-debug-mode/m-p/994201#M28021</guid>
      <dc:creator>Ashley_Weinstein</dc:creator>
      <dc:date>2012-08-27T22:21:10Z</dc:date>
    </item>
    <item>
      <title>Bug in debug mode</title>
      <link>https://community.intel.com/t5/Software-Archive/Bug-in-debug-mode/m-p/994202#M28022</link>
      <description>Another thing I've noticed that can happen when debugging DO loops is if
 I choose the DO variable counter as the breakpoint condition (e.g. 
i=30), then when the breakpoint is reached, the counter variable gets 
reset to 1! &lt;BR /&gt;&lt;BR /&gt;Since no one has replied to this thread I guess I am the only person who has this problem???</description>
      <pubDate>Wed, 29 Aug 2012 16:50:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Bug-in-debug-mode/m-p/994202#M28022</guid>
      <dc:creator>Ashley_Weinstein</dc:creator>
      <dc:date>2012-08-29T16:50:28Z</dc:date>
    </item>
  </channel>
</rss>

