<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Debug Directory?]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=685&amp;type=atom" />
	<updated>2019-02-05T18:20:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=685</id>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3286#p3286" />
			<content type="html"><![CDATA[<p>O.k. Just wanted to close things up here:</p><p>The problem with Debugging appears to have been due to the size of the source being compiled. With thousands of variables, 150+ files, hundreds of functions and subroutines it seems it just overwhelmed the debugger. Smaller projects debug as expected.</p><p>Thanks for the speedy replies Jeff, and sorry it took me this long to circle back to this. P.S. I can&#039;t seem to see an option to mark this topic &quot;answered&quot;.</p>]]></content>
			<author>
				<name><![CDATA[jthomas]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3808</uri>
			</author>
			<updated>2019-02-05T18:20:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3286#p3286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3162#p3162" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Sorry for the delayed reply, I discovered that the namelist reading problem was my fault, I had hard coded the filepaths to a specific file to try and debug things that way (it didn&#039;t work as soon as I needed to read a different file). So you can ignore that.</p><br /><p>The project file and working file are set to different directories. This works fine when launching the program (when I don&#039;t screw up and hard code file paths) through the IDE but still doesn&#039;t work with debugging. I will try making the working file the same directory as the project file and moving everything there.</p>]]></content>
			<author>
				<name><![CDATA[jthomas]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3808</uri>
			</author>
			<updated>2018-08-20T22:18:45Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3162#p3162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3161#p3161" />
			<content type="html"><![CDATA[<p>The namelist values not updating probably represents a bigger problem.&nbsp; Are the executable, namelist, and project file all in the same directory?&nbsp; Just curious.</p><p>Is the working directory set to something other than the directory where the project file is located? While this should work perfectly, there may be a bug.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2018-08-19T17:51:30Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3161#p3161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3160#p3160" />
			<content type="html"><![CDATA[<p>Correction to my previous post, there is actually strange behavior when I run it as well. I just noticed after updating some values in a namelist input file that the program somehow still runs with the old values.</p>]]></content>
			<author>
				<name><![CDATA[jthomas]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3808</uri>
			</author>
			<updated>2018-08-17T14:13:57Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3160#p3160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3159#p3159" />
			<content type="html"><![CDATA[<p>Hi Jeff,</p><p>Thanks for responding so quickly, the working directory is currently set to C:\Users\jthomas\Desktop\[proprietary folder name]. Running works flawlessly as long as I&#039;m not debugging.</p>]]></content>
			<author>
				<name><![CDATA[jthomas]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3808</uri>
			</author>
			<updated>2018-08-17T13:33:51Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3159#p3159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3157#p3157" />
			<content type="html"><![CDATA[<p>The debugger&#039;s working directory should be the same as the launch directory.&nbsp; If that&#039;s not occurring, it would be considered a bug.&nbsp; Let me check that the debugger is properly switching the Working Directory.</p><p>Can you tell me what exactly you have the working directory set to in the Launch Options window?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2018-08-17T11:34:24Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3157#p3157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Debug Directory?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3156#p3156" />
			<content type="html"><![CDATA[<p>Hi All,</p><p>I recently started using Simply Fortran and I&#039;m having a problem with debugging. My code opens a file containing namelists which is intended to be in the same directory as the executable. I have no problem running (via Launch! or F5) my code when I set the Working Directory under Options &gt; Launch... to the appropriate folder but I have so far been completely unable to use the debugger.</p><p>Every time I run the debugger it fails with the error:</p><p>&quot;Fortran runtime error: Cannot open file &#039;simfile.nml&#039;: No such file or directory&quot;</p><p>Solutions I have tried:</p><p>1) Moving gdb.exe to the directory with simfile.nml and setting Debugger Options &gt; 64-bit Debugger to that path</p><p>2) Setting the debugger argument --with-seperate-debug-dir=[directory with input files]</p><p>Neither did anyting. I am open to suggestions, sorry if this question is answered elsewhere.</p>]]></content>
			<author>
				<name><![CDATA[jthomas]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3808</uri>
			</author>
			<updated>2018-08-16T22:29:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3156#p3156</id>
		</entry>
</feed>
