<?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 Data breakpoint question in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814185#M44426</link>
    <description>How do I set a breakpoint that will trigger when a given Fortran variable gets changed somewhere? There seems to be such a feature in VS10, but it ignores my Fortran variables -- which get changed with no break triggered.&lt;BR /&gt;</description>
    <pubDate>Sat, 26 May 2012 19:57:01 GMT</pubDate>
    <dc:creator>dondilworth</dc:creator>
    <dc:date>2012-05-26T19:57:01Z</dc:date>
    <item>
      <title>Data breakpoint question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814185#M44426</link>
      <description>How do I set a breakpoint that will trigger when a given Fortran variable gets changed somewhere? There seems to be such a feature in VS10, but it ignores my Fortran variables -- which get changed with no break triggered.&lt;BR /&gt;</description>
      <pubDate>Sat, 26 May 2012 19:57:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814185#M44426</guid>
      <dc:creator>dondilworth</dc:creator>
      <dc:date>2012-05-26T19:57:01Z</dc:date>
    </item>
    <item>
      <title>Data breakpoint question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814186#M44427</link>
      <description>&lt;P&gt;Try this (in VS in edit mode, Debug build):&lt;BR /&gt;&lt;BR /&gt;Debug | Delete All Breakpoints (*** do not omit this step ***)&lt;BR /&gt;Set breakpoint at first statement in program&lt;BR /&gt;Run (to breakpoint)&lt;BR /&gt;Find a variable that is in the scope of the main thread (including global variables) that will shortly be modified. Click mouse pointer on variable, then&lt;BR /&gt;&lt;BR /&gt; Debug | New Breakpoint | New Data Breakpoint&lt;BR /&gt;&lt;BR /&gt;Place second statement breakpoint on a line after statement that modifies variable, then Continue&lt;BR /&gt;&lt;BR /&gt;See if data breakpoint breaks before at line breakpoint breaks.&lt;BR /&gt;&lt;BR /&gt;This test confirms if databreakpoints work or if you are using it with false assumptions.&lt;BR /&gt;&lt;BR /&gt;Some things to remember:&lt;BR /&gt;&lt;BR /&gt;1) OpenMP private variables are difficult to set data breakpoints (ambiguity as to thread scope context)&lt;BR /&gt;2) Data breakpoints resolve (at runtime) symbol/expressionto address and save the address (IOW text of symbol name/expression not saved)&lt;BR /&gt;3) Because address (2) is saved for data breakpoints theData breakpoints are not preserved as activeacross runs. If you edit source or break within an allocated object the addresses may vary from run to run.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2012 15:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814186#M44427</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-05-27T15:41:00Z</dc:date>
    </item>
    <item>
      <title>Data breakpoint question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814187#M44428</link>
      <description>I had a problem when trying to set a complex breakpoint condition, and Steve recommended using the DebugBreak call, which always sets it.&lt;BR /&gt;&lt;BR /&gt;The problem with that though, is &lt;B&gt;you can't disable it &lt;/B&gt;whenever needed.&lt;BR /&gt;&lt;BR /&gt;What we really need is a way to enable/disable breakpoints at execution time, i.e. from the &lt;B&gt;source code.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;In other words to intereact with the breakpoints from within the executing code, if that's possible.&lt;BR /&gt;&lt;BR /&gt;Another helpful feature would be to completely disable any optimization when trying to DEBUG a program,&lt;BR /&gt;that would remove a lot of the confusion. The one could re-enable the optimization for production runs - -&lt;BR /&gt;hopefully the behavior would then be unchanged.&lt;BR /&gt;</description>
      <pubDate>Sun, 27 May 2012 15:58:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814187#M44428</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2012-05-27T15:58:54Z</dc:date>
    </item>
    <item>
      <title>Data breakpoint question</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814188#M44429</link>
      <description>&lt;BR /&gt;&amp;gt;&amp;gt;The problem with that though, is &lt;B&gt;you can't disable it &lt;/B&gt;whenever needed.&lt;BR /&gt;&lt;BR /&gt;Change:&lt;BR /&gt;&lt;BR /&gt; call DebugBreak&lt;BR /&gt;&lt;BR /&gt;subroutine foo()&lt;BR /&gt; implicit none&lt;BR /&gt;logical, save :: Break1 = .true.&lt;BR /&gt; ...&lt;BR /&gt; if(Break1) call DebugBreak()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then set or unset Break1&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Another helpful feature would be to completely disable any optimization when trying to DEBUG a program, that would remove a lot of the confusion&lt;BR /&gt;&lt;BR /&gt;This is why you select (in Visual Studio) the Debug Build&lt;BR /&gt;&lt;BR /&gt;The second line of the toolbar (usually) has two drop-down boxes. The left one (usually) contains&lt;BR /&gt;&lt;BR /&gt; Debug&lt;BR /&gt; Release&lt;BR /&gt; (your other build configurations here and below)&lt;BR /&gt;&lt;BR /&gt;The right drop-dow s (usually) platform&lt;BR /&gt;&lt;BR /&gt; Win32 (32-bit Windows)&lt;BR /&gt; x64 (64-bit Windows)&lt;BR /&gt; (your other platforms here)&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2012 00:51:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-breakpoint-question/m-p/814188#M44429</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-05-28T00:51:49Z</dc:date>
    </item>
  </channel>
</rss>

