<?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: Setting user breakpoints at runtime in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839644#M57613</link>
    <description>USE KERNEL32&lt;BR /&gt;&lt;BR /&gt;When you look up a Win32 API routine in the MSDN documentation, click the "check" on the page to see more information.  It will list the library the routine is found in, such as "kernel32.lib".  That's your clue as to the module name to use.&lt;BR /&gt;&lt;BR /&gt;Here's a little program I wrote yesterday to test this API (and IsDebuggerPresent, which tells you if the program is running under the debugger).&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;program Console3&lt;BR /&gt;&lt;BR /&gt;implicit none&lt;BR /&gt;integer i&lt;BR /&gt;do i=1,10&lt;BR /&gt;call sub (i)&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;end program Console3&lt;BR /&gt;&lt;BR /&gt;subroutine sub (i)&lt;BR /&gt;use kernel32&lt;BR /&gt;integer i, ret&lt;BR /&gt;if (i == 5) then&lt;BR /&gt;  if (IsDebuggerPresent() /= 0) then&lt;BR /&gt;    Call DebugBreak&lt;BR /&gt;  else&lt;BR /&gt;    write (*,*) "Not in debugger"&lt;BR /&gt;  end if&lt;BR /&gt;end if&lt;BR /&gt;return&lt;BR /&gt;end subroutine sub&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Aug 2005 20:24:46 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2005-08-05T20:24:46Z</dc:date>
    <item>
      <title>Setting user breakpoints at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839641#M57610</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What was the name of the Windows API function that allowed setting a user breakpoint at program runtime? I have a app that runs very fast and want to debug the running app but i do not want to start it from the debugger since im investigating an error that does not occur when starting the app from the debugger.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ingo</description>
      <pubDate>Thu, 04 Aug 2005 22:43:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839641#M57610</guid>
      <dc:creator>ingo_berg</dc:creator>
      <dc:date>2005-08-04T22:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting user breakpoints at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839642#M57611</link>
      <description>DebugBreak</description>
      <pubDate>Thu, 04 Aug 2005 22:48:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839642#M57611</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-08-04T22:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting user breakpoints at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839643#M57612</link>
      <description>Is there already a module that enables DebugBreak for fortran or do I have to write my own interface? If so, can you give me an example how?</description>
      <pubDate>Fri, 05 Aug 2005 16:16:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839643#M57612</guid>
      <dc:creator>ingo_berg</dc:creator>
      <dc:date>2005-08-05T16:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting user breakpoints at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839644#M57613</link>
      <description>USE KERNEL32&lt;BR /&gt;&lt;BR /&gt;When you look up a Win32 API routine in the MSDN documentation, click the "check" on the page to see more information.  It will list the library the routine is found in, such as "kernel32.lib".  That's your clue as to the module name to use.&lt;BR /&gt;&lt;BR /&gt;Here's a little program I wrote yesterday to test this API (and IsDebuggerPresent, which tells you if the program is running under the debugger).&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;program Console3&lt;BR /&gt;&lt;BR /&gt;implicit none&lt;BR /&gt;integer i&lt;BR /&gt;do i=1,10&lt;BR /&gt;call sub (i)&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;end program Console3&lt;BR /&gt;&lt;BR /&gt;subroutine sub (i)&lt;BR /&gt;use kernel32&lt;BR /&gt;integer i, ret&lt;BR /&gt;if (i == 5) then&lt;BR /&gt;  if (IsDebuggerPresent() /= 0) then&lt;BR /&gt;    Call DebugBreak&lt;BR /&gt;  else&lt;BR /&gt;    write (*,*) "Not in debugger"&lt;BR /&gt;  end if&lt;BR /&gt;end if&lt;BR /&gt;return&lt;BR /&gt;end subroutine sub&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2005 20:24:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839644#M57613</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-08-05T20:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting user breakpoints at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839645#M57614</link>
      <description>Thank you very much, this is all I need.</description>
      <pubDate>Fri, 05 Aug 2005 22:07:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Setting-user-breakpoints-at-runtime/m-p/839645#M57614</guid>
      <dc:creator>ingo_berg</dc:creator>
      <dc:date>2005-08-05T22:07:44Z</dc:date>
    </item>
  </channel>
</rss>

