<?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 (Sorry, I posted the in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794782#M34570</link>
    <description>&lt;P&gt;(Sorry, I posted the following in the wrong chain. Here it is and sorry about the duplication)&lt;/P&gt;

&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even" property="content:encoded"&gt;
			&lt;P&gt;I take this opportunity to ask a related question. I want the program to break whenever a certain variable changes value, say var_1. This is not well described in the documentation. I gather that the feature is called a&amp;nbsp;"data breakpoint." The documentation describes that this is not explicitly supported for Fortran, but the C++ support can be used if the variable is "entered" (where?) in caps, i.e. VAR_1. It goes on for an&amp;nbsp;explicit example in the case of an array variable, where it instructs Debug &amp;gt; New Breakpoint &amp;gt; New Data Breakpoint, then enter the address in loc form, and the byte count (whatever that would be in my case), and finally the language as C++. That choice (nor any choices at all) are not available in my list.&lt;/P&gt;

			&lt;P&gt;Should I conclude that what I want to do is not supported by the VS Shell?&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV class="forum-post-footer clearfix"&gt;
	&lt;DIV class="forum-jump-links"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 01 Feb 2014 21:22:10 GMT</pubDate>
    <dc:creator>dboggs</dc:creator>
    <dc:date>2014-02-01T21:22:10Z</dc:date>
    <item>
      <title>Conditional breakpoints when debugging</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794777#M34565</link>
      <description>&lt;P&gt;I am using IVF 9.1 and of course Visual Studio. I have a nested loop and I would like to break when the counter for the inside loop is a certain value and also when the counter for the outside loop is a certain value. I.e. break when two conditions are true at the same time.&lt;/P&gt;
&lt;P&gt;I can do it for one condition; just set, say, "j=134" in that little condition box and it works fine. J is the outside loop counter. I is the inside one. I would like to break when, say "j=134" AND also when "i=40". How do I do this?&lt;/P&gt;
&lt;P&gt;I've tried things like "j=134 and i=40", "j=134 .and. i=40", "j=134, j=40" and many others. I've tried Visual Studio help and I've googled but I can't find the exact syntax anywhere and am getting tired of throwing darts.&lt;/P&gt;
&lt;P&gt;I just discovered recently that I'm actually using the Visual Studio debugger. Perhaps this is the wrong forum/company but I always thought debugging aFORTRAN program was aFORTRAN thing. This Visual Studio environment thing is very confusing.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2006 04:32:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794777#M34565</guid>
      <dc:creator>sabur</dc:creator>
      <dc:date>2006-07-26T04:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional breakpoints when debugging</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794778#M34566</link>
      <description>You're in the right place. You may be using the Visual Studio debugger but you're using the Intel Fortran enhancement to it so that it understands Fortran.&lt;BR /&gt;&lt;BR /&gt;I have not yet tried this, but it should accept normal Fortran expression syntax. For example:&lt;BR /&gt;&lt;BR /&gt;(j == 134) .and. (i == 40)&lt;BR /&gt;&lt;BR /&gt;Note the dots as used in Fortran logical operators and the double-equal (could also use .eq.)&lt;BR /&gt;&lt;BR /&gt;There has been some flakiness reported with data breakpoints, so I can't promise this will work.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 05:22:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794778#M34566</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-07-26T05:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional breakpoints when debugging</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794779#M34567</link>
      <description>&lt;P&gt;Cool. That worked.&lt;/P&gt;
&lt;P&gt;I am familiar with the "dotted" Fortran logical operators and had tried using ".and." in some fashion. I also discovered the double equal sign when googling a while back when I was using CVF. That enabled me to do simple conditional breaking back then and I believe it was, you guessed it, a post I found googling by someone named Steve Lyons or Liens or maybe Lional; something like that. I also tried the double equal sign but I didn't use them and ".and."together in the wayjust described&lt;/P&gt;
&lt;P&gt;Just out of idol curiosity, is this ..uh, documented anywhere?&lt;/P&gt;
&lt;P&gt;Howthe bleep do you find the time to respond to as many of these questions as you do and keep up with all this stuff?&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:36:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794779#M34567</guid>
      <dc:creator>sabur</dc:creator>
      <dc:date>2006-07-26T06:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional breakpoints when debugging</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794780#M34568</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;Sabur:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;I found googling by someone named Steve Lyons or Liens or maybe Lional; something like that.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Something like that... :-)&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;Just out of idol curiosity, is this ..uh, documented anywhere?&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Um, yeah. The syntax is just normal Fortran expression syntax. I'll agree that data watchpoints aren't documented specifically for Fortran. I'll suggest that that can be improved.&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;Howthe bleep do you find the time to respond to as many of these questions as you do and keep up with all this stuff?&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it is part of my job, and I've gotten pretty good at it over the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Enjoy.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2006 09:00:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794780#M34568</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-07-26T09:00:57Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794781#M34569</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;Just out of idol curiosity, is this ..uh, documented anywhere?
	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Um, yeah. The syntax is just normal Fortran expression syntax. I'll agree that data watchpoints aren't documented specifically for Fortran. I'll suggest that that can be improved.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I was struggling with the exactly same issue as sabur until I discovered this comments. Thanks a lot for your help Steve&lt;/P&gt;

&lt;P&gt;However, altough I thought I was familiar with Fortran expression syntax, it never ocurred to me that&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;(j == 134) .and. (i == 40) could be a valid expresion for the conditional breakpoint, because (for example) in an IF-THEN-END IF statement the brackets are used only once: ( j == 134 .and. i==40).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Therefore, since this post is quite old, do you know if valid conditional expressions for Fortran debugging with VS are now documented anywhere? I've searched VS2008 documentation throughly and I did not found anything related.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2014 10:14:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794781#M34569</guid>
      <dc:creator>martinez_paneda__emi</dc:creator>
      <dc:date>2014-02-01T10:14:29Z</dc:date>
    </item>
    <item>
      <title>(Sorry, I posted the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794782#M34570</link>
      <description>&lt;P&gt;(Sorry, I posted the following in the wrong chain. Here it is and sorry about the duplication)&lt;/P&gt;

&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even" property="content:encoded"&gt;
			&lt;P&gt;I take this opportunity to ask a related question. I want the program to break whenever a certain variable changes value, say var_1. This is not well described in the documentation. I gather that the feature is called a&amp;nbsp;"data breakpoint." The documentation describes that this is not explicitly supported for Fortran, but the C++ support can be used if the variable is "entered" (where?) in caps, i.e. VAR_1. It goes on for an&amp;nbsp;explicit example in the case of an array variable, where it instructs Debug &amp;gt; New Breakpoint &amp;gt; New Data Breakpoint, then enter the address in loc form, and the byte count (whatever that would be in my case), and finally the language as C++. That choice (nor any choices at all) are not available in my list.&lt;/P&gt;

			&lt;P&gt;Should I conclude that what I want to do is not supported by the VS Shell?&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV class="forum-post-footer clearfix"&gt;
	&lt;DIV class="forum-jump-links"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Feb 2014 21:22:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794782#M34570</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2014-02-01T21:22:10Z</dc:date>
    </item>
    <item>
      <title>I do not have installed on my</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794783#M34571</link>
      <description>&lt;P&gt;DBoggs: I do not have installed on my machines any of the VS shells that come with Intel Fortran, but you may find the following suggestion to work. I have found that if I compile Fortran source with the /Zi option, the resulting EXE can be debugged with, for example, Visual Studio Express 2013 for Windows Desktop. However, lacking Fortran integration, this version of VS has to be used in a C-centric way. With the test program[fortran]&amp;nbsp; &amp;nbsp; &amp;nbsp; program dbrk&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; integer i,j&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; do i=1,10&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;j=i*i+3&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write(*,*)i,j&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; end do&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; end[/fortran]&lt;/P&gt;

&lt;P&gt;I built the EXE from the command line, started up VS Express, and caused the the program to be entered by pressing F11. I then tested two types of breakpoints:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;A conditional code breakpoint on Line-5 with the condition J &amp;gt; 50&lt;/LI&gt;
	&lt;LI&gt;A data breakpoint (which, behind the scenes, exploits the CPU feature of setting data breakpoints on a small number of specified memory addresses) for a change in the local variable J.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I set the data breakpoint by specifying &lt;EM&gt;&amp;amp;J&lt;/EM&gt; as the variable to watch. The uppercase name is needed because that is what Intel Fortran puts out as debug information on IA32; the '&amp;amp;' is needed because VS Express has no Fortran integration. I could have, alternatively, looked up the hex-address of J and entered that address into the data breakpoint specification. This alternative has the drawback that the addresses of variables may change with repeated executions of the program, because of Windows address "randomization", which is implemented in some versions of Windows.&lt;/P&gt;

&lt;P&gt;As you may have observed yourself, data breakpoints can be added only after program execution has been started in the debugger. That is probably because local variables are addressed through EBP and addresses of global/common variables are subject to relocation during program start-up.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 17:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794783#M34571</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-02-02T17:01:00Z</dc:date>
    </item>
    <item>
      <title>Thanks, I appreciate the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794784#M34572</link>
      <description>&lt;P&gt;Thanks, I appreciate the response and suggestions. But...&lt;/P&gt;

&lt;P&gt;When I attempt to run the program using f11, I get an error message "source code not found" looking for crt0.c. This happens with or without /Zi. I'm out of my league here so don't think I will pursue further. I survived without data breakpoints for years and can probably survive a few more.&lt;/P&gt;

&lt;P&gt;btw, is there anyplace I can find a description of the limitations of the VS shell, so I could consider the advantages of upgrading to the full VS? Until now I had supposed that the shell was providing nearly everything I needed. That is until as I recently learned (1) inability to print in color, (2) inability to customize the header on printed output (even if those things require an extension, since the extensions cannot be installed in the shell). Well those are minor, and don't strongly affect my ability to develop Fortran programs, but it seems the limitations keep piling up now.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:07:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794784#M34572</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2014-02-02T21:07:52Z</dc:date>
    </item>
    <item>
      <title>On of the biggest limitations</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794785#M34573</link>
      <description>&lt;P&gt;On of the biggest limitations of VS shell is no resource editor, that is a pain! I am aware that is a Microsoft restriction.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 22:39:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794785#M34573</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2014-02-02T22:39:37Z</dc:date>
    </item>
    <item>
      <title>Yes, I am aware of that one,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794786#M34574</link>
      <description>&lt;P&gt;Yes, I am aware of that one, and agree that it is a big pain. Thanks for mentioning it.&lt;/P&gt;

&lt;P&gt;Even worse than the absence of some of these, the Intel documentation on how to use them--meager as it is--seems to always assume that you have the full VS. Using resource files is a good example. You can use 3rd-party editors to create .rc files (I use my old edition of Compaq Visual Fortran, before Microsoft took the editor away) to create them, but when it comes to integrating them with your project--well, let's just say you are on your own, and the Intel documentation can hurt more than it helps.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:04:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794786#M34574</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2014-02-02T23:04:49Z</dc:date>
    </item>
    <item>
      <title>I also use an older</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794787#M34575</link>
      <description>&lt;P&gt;I also use an older maintained version of VS for resources, I used REsedit for a time but then &amp;nbsp;I had some features that did not work in Resedit and there isn't any real support for it, it is not a commercial code.&lt;/P&gt;

&lt;P&gt;There really should be a supported resource &amp;nbsp;solution bundled with the product, it is after-all 'Visual Fortran' and resources are a big part of Visual.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:49:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794787#M34575</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2014-02-02T23:49:19Z</dc:date>
    </item>
    <item>
      <title>Quote:dboggs wrote: I get an</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794788#M34576</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12.800000190734863px; line-height: 14.399999618530273px;"&gt;&amp;nbsp;I get an error message "source code not found" looking for crt0.c&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;You can either ignore the message or you can set a breakpoint at function&amp;nbsp;_MAIN__ (the Fortran code entry point) and let the program reach that breakpoint before attempting anything else.&amp;nbsp;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:57:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794788#M34576</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-02-02T23:57:51Z</dc:date>
    </item>
    <item>
      <title>mecej4,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794789#M34577</link>
      <description>&lt;P&gt;mecej4,&lt;/P&gt;

&lt;P&gt;Yes, I can do it now. It's too bad this requires such roundabout steps to accomplish. But thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 00:25:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Conditional-breakpoints-when-debugging/m-p/794789#M34577</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2014-02-03T00:25:01Z</dc:date>
    </item>
  </channel>
</rss>

