<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Questions on debugger and code optimization]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=143&amp;type=atom" />
	<updated>2013-01-31T14:10:27Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=143</id>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=521#p521" />
			<content type="html"><![CDATA[<p>Version 1.39, which is currently undergoing testing, includes a new version of Insight.&nbsp; Hopefully the update will fix any issues that Insight users are experiencing.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-31T14:10:27Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=521#p521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=520#p520" />
			<content type="html"><![CDATA[<p>I&#039;ve tried that.<br />Same result.<br />I am able to debug some of my projects with Insight.<br />Just not the ones I&#039;m working on, worse luck!<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-01-27T15:14:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=520#p520</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=519#p519" />
			<content type="html"><![CDATA[<p>John,</p><p>One thing I would suggest is changing your target name to something without parentheses.&nbsp; A good number of GNU tools do not play well with parentheses in path names, and Insight is probably not happy about the executable&#039;s name.&nbsp; I would alternatively suggest using the name &quot;InStruct117-32bit.exe&quot; and trying Insight again.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-27T14:42:03Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=519#p519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=518#p518" />
			<content type="html"><![CDATA[<p>I&#039;m using 1.38.<br />My executable name is set to&nbsp; &nbsp;InStruct117(32bit).exe<br />without a pathname.<br />Insight is still not working for me.<br />---<br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-01-26T22:31:20Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=518#p518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=517#p517" />
			<content type="html"><![CDATA[<p>I just wanted to chime in that the debugger seems to be working for me as intended. The &quot;trick&quot; I was using before is no longer needed. I am somewhat baffled as to why. I may have had break points set wrong or not active or not in the execution path. </p><p>The one thing I did change is that under project options, I have only the executable name in the &quot;Target Name&quot; dialog. Jeff had me remove the full path name to the executable. Since then, things are working. </p><p>The other thing that is different is that I did download version 1.38 and install it. It could be that I registered the product last night, LOL. </p><p>Thanks again for all the help.</p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[grogley]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3372</uri>
			</author>
			<updated>2013-01-26T22:23:21Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=517#p517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=516#p516" />
			<content type="html"><![CDATA[<p>John,</p><p>I&#039;ll start looking into the debugger issues.&nbsp; I can&#039;t say what&#039;s wrong right off the top of my head.&nbsp; Would you mind emailing me your makefile just so I can have a look?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-26T17:41:59Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=516#p516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=515#p515" />
			<content type="html"><![CDATA[<p>Rod&#039;s trick,</p><p><em>after you open the debugger and launch the executable, if you click the icon for going to the next debug break point, then the debugger does start doing what is intended and you can step into and out of and through the next code lines as intended</em>,</p><p>...doesn&#039;t work for me.</p><p>I do this:<br /> - open the debugger using the debug icon, <br /> - check correct breakpoints still set,<br /> - launch, using the &#039;Run (R)&#039; icon.</p><p>I do not get the chance after this to click the next debug break point icon, &#039;Next (R)&#039;, in the way that Rod has been able to do, because the display panel blanks half a second after I press the &#039;Run (R)&#039; icon, with the &#039;<em>Select function name</em>&#039; error message at the top:</p><p>&#039;<em>Select function name to disassemble</em>&#039;.</p><p>All debugger icons are active but the the &#039;Next (R)&#039; icon just flashes the icons panel fractionally and returns to the same blank panel with the same error message.&nbsp; I&#039;ve tried holding my finger on the &#039;N&#039; key to hammer it with repeats of the same command.&nbsp; Same result.</p><p>I&#039;ve also tried running the Insight debugger executable manually, not running it from within SF.<br />I&#039;ve tried it with both the 64-bit and 32-bit versions (my executable is built on a 64-bit laptop, as 32-bit code).<br />Same result both times.</p><p>One final clue I&#039;ve noticed:<br />After running the debugger, before launching the application, the selector at the far RHS of the display is set to &#039;SOURCE&#039;.<br />When the error occurs, it has changed to &#039;ASSEMBLY&#039;, and will not allow me to re-select &#039;SOURCE&#039;.<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-01-26T12:36:47Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=515#p515</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=514#p514" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>I made the changes you suggested to the launch configuration and that workaround does the trick. Is the debugger supposed to use the same command line options put in the launch section?</p><p>I am able to debug now. One trick I discovered is after you open the debugger and launch the executable, if you click the icon for going to the next debug break point, then the debugger does start doing what is intended and you can step into and out of and through the next code lines as intended. Perhaps John can try that too to get it working. </p><p>Debugging an OpenMP code with a single thread is probably the way to go. However, the debugger will not step into an OpenMP directive set of code. I am not sure if it should but it would be nice.</p><p>Now I have to figure what my crazy code is doing...</p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[grogley]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3372</uri>
			</author>
			<updated>2013-01-26T00:57:55Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=514#p514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=507#p507" />
			<content type="html"><![CDATA[<p>Rod,</p><p>I just posted a bug about your Launch button issues.&nbsp; I&#039;ll look into a new build of the debugger.&nbsp; Let us know how restricting debugging to a single thread works out too.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-25T13:51:17Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=507#p507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=506#p506" />
			<content type="html"><![CDATA[<p>&#039;Grogley wrote, </p><p>-----------<br />...the debugger is my immediate problem. When I open it up, all seems normal. I open the executable to be debugged and then it opens the code in the window for a brief second (as what was normal before) but then goes blank with the following message:</p><p>&quot;Select function name to disassemble&quot;<br />I can reopen the code again, but can&#039;t step into anything or run to break points.<br />-----------</p><p>I have been having exactly the same problem for some weeks, with one of my projects. <br />I can set breakpoints OK but when I try to run, the debugger emits exactly the same error message as above and then operates exactly as Grogley has described.. <br />I&#039;ve switched back to the old way of debugging, by inserting print statements.&nbsp; So slow.</p><p>I am compiling on a 64bit laptop for 32bit code.<br />No optimisation is set.<br />---- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-01-25T13:47:26Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=506#p506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=504#p504" />
			<content type="html"><![CDATA[<p>Jeff</p><p>As per email to the support group, I sent PRJ and MAKEFILE files to you. I also downloaded the latest version, 1.38 and installed it. </p><p>I am able to debug now it seems but still behaves oddly. It will also crash if I restart it several times, which is not a big deal. </p><p>Suggestions to limit my debug to single threaded code make a lot of sense and I will try do that going forward. </p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[grogley]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3372</uri>
			</author>
			<updated>2013-01-25T11:21:22Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=504#p504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=503#p503" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>I downloaded the SF image this month, just a few weeks ago. I think I am using 1.37? My first post to the forum was on 1/14 and 1.38 was release on 1/14, so probably I am using 1.37. Does that sound right? I will send you some of the asked for information when I get home tonight. </p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[grogley]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3372</uri>
			</author>
			<updated>2013-01-24T17:16:44Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=503#p503</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=499#p499" />
			<content type="html"><![CDATA[<p>Rod,</p><p>Conceptually, I would guess that some lines could be &quot;optimized out&quot; when any sort of optimization is enabled.&nbsp; When I&#039;m debugging, I do indeed try to avoid enabling any optimization.&nbsp; </p><p>The launch button is automatically and internally configured to launch the target program (as defined in Project Options).&nbsp; Command line arguments would be to add any arguments you wish to pass to your program, and it should not contain the executable name itself.&nbsp; The working directory can usually be left blank, which indicates the program should run in the directory in which it was compiled.&nbsp; If the launch button isn&#039;t working, something else is quite wrong.&nbsp; If that&#039;s the case, you can email me your project file (ending in &quot;.prj&quot;) and Makefile to troubleshoot the issue.</p><p>What version of Simply Fortran are you working with?&nbsp; I just want to make sure that you&#039;re running the most up-to-date version.&nbsp; Also, what is the name of your target program and in what directory are you working?&nbsp; Some tools can have issues with paths containing spaces or parentheses.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-24T15:09:23Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=499#p499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=498#p498" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>Thanks for the quick response. Here is some more information.</p><p>As far as optimization, I do disable optimization and when I do, things behave better (not perfect as there may be coding issues that I need to debug). It is when I set the -O2 option in the build step that things go really weird and I notice that lines of code get optimized out. </p><p>Debugging is enabled during the compile and build step. I am compiling for 32 bit executable for now but my workstation platform is 64 bit. When building, I always do the clean step. </p><p>I didn&#039;t think to look at the Makefile for issues but I probably wouldn&#039;t understand what those issue would be anyway. I will check that out tonight when I get home from work. If needed, I will send the makefile to you then.</p><p>Another issue I am having is the launch button. How do I configure that to launch the program. I have the default directory set but it can&#039;t seem to find the executable to use. Do I enter the executable name into the above command line options text box(I&#039;ve done that but it makes no difference)? What goes in there exactly? LOL!</p><p>Thanks again for your help.</p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[grogley]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3372</uri>
			</author>
			<updated>2013-01-24T14:42:11Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=498#p498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions on debugger and code optimization]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=496#p496" />
			<content type="html"><![CDATA[<p>Rod,</p><p>Have you tried disabling all optimization first?&nbsp; The compiler shouldn&#039;t perform any optimization unless directed to do so.&nbsp; The symptoms you&#039;re describing seem to suggest that debugging was disabled at compile time.&nbsp; If you&#039;ve been playing with compiler options, it is usually advisable to clean the project after making any sort of change.&nbsp; </p><p>What architecture are you compiling for, 32- or 64-bit?&nbsp; If you are on 64-bit Windows, I might also suggest trying both 32- and 64-bit builds to see if there is any difference. </p><p>If you continue to have issues, you can email your Makefile to me at support@approximatrix.com for me to examine to see if I can sort out if a compiler option is causing the issue with the debugger.&nbsp; </p><p>Sorry for the issue.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-24T14:10:12Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=496#p496</id>
		</entry>
</feed>
