<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Debug watch-variables panel displays structured data types badly]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=76</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=76&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Debug watch-variables panel displays structured data types badly.]]></description>
		<lastBuildDate>Wed, 07 Mar 2012 18:52:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Debug watch-variables panel displays structured data types badly]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=239#p239</link>
			<description><![CDATA[<p>John,</p><p>The double backslashes are displayed due to the C-centric nature of the debugger.&nbsp; In C, a backslash would be an escape character.&nbsp; I would guess that the debugger is displaying double backslashes to make it clear to the developer that it isn&#039;t referring to an escape sequence.&nbsp; If your path had a tab character in it somehow (not possible I would guess), you&#039;d probably see a &quot;\t&quot; in the path where the tab should be.&nbsp; I don&#039;t think it&#039;s a problem, just something that the developer should be aware of.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 07 Mar 2012 18:52:40 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=239#p239</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debug watch-variables panel displays structured data types badly]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=237#p237</link>
			<description><![CDATA[<p>Jeff, please look again at the second of the two screenshots I sent you.&nbsp; Apart from the text walking over other text, as already reported, there&#039;s also something else there, a second gremlin. which I hadn&#039;t noticed before.</p><p>In the particular example shown on the screenshot, <br />the debugger display shows the contents of a structured <br />variable called&nbsp; [ InF ] .&nbsp; </p><p>This contains, inter alia, a sub-variable called&nbsp; [ nam] .</p><p>It so happens that, in my program, [ InF%nam ] stores a file pathname.<br />In the example shown, the stored value was,</p><p>&nbsp; &nbsp; &#039;G:\InStruct\Tests\Sav.zzz&#039;</p><p>However, please look at what the debugger reports it to be.&nbsp; <br />It reports the stored value wrongly as,</p><p>&nbsp; &nbsp; &#039;G:\\InStruct\\Tests\\Sav.zzz&#039; .</p><p>I have double-checked to ensure that there isn&#039;t a fault in my program, causing the double &#039;\\&#039; to be stored in this variable, and I can&#039;t find one.&nbsp; Furthermore, and this fully confirms it, I have inserted a debug statement to print InF%nam to the screen, and it prints the correct value, of &#039;G:\InStruct\Tests\Sav.zzz&#039;. </p><p>Seemingly, the debugger is reporting an incorrect value for this structured variable.</p><p>I can&#039;t think that the source code of my program can be causing this but, in case it helps to know this, the source code includes some strong concatenation using the &#039;//&#039; operator.&nbsp; This does not happen in any code near the place where this debug reporting error occurs, however.&nbsp; Here is the fragment of code that stores a value in&nbsp; &nbsp;[ InF%nam ] :</p><p>&nbsp; &nbsp; &nbsp; InF%NAMed = .FALSE.<br />&nbsp; &nbsp; &nbsp; InF%NAM = REPEAT(&#039; &#039;,128)<br />&nbsp; &nbsp; &nbsp; CALL dwgfil(&#039;SAVE file name&#039;, InF%NAM, &#039;*.*&#039;)&nbsp; &nbsp; ! DISLIN <br />&nbsp; &nbsp; &nbsp; InF%NAM = TRIM(AdjustL(InF%NAM))</p><p>The call to a DISLIN procedure displays a filename-selector dialog box, with a prompt string, and returns a file pathname to the calling program.&nbsp; As you see, there is nothing in this that should cause the problem.&nbsp; Note also that the pathneme selected in the example I gave includes my &quot;G:\&quot; virtual drive abbreviation.<br />---- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Wed, 07 Mar 2012 18:22:25 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=237#p237</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debug watch-variables panel displays structured data types badly]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=235#p235</link>
			<description><![CDATA[<p>John,</p><p>Thanks for the screenshots.&nbsp; There certainly does seem to be a nasty drawing problem.&nbsp; I&#039;ll look into it, but a fix probably won&#039;t make this week&#039;s predicted release of 1.26.&nbsp; Furthermore, the Insight debugger may be upgraded to a more recent version in the next release cycle or two.&nbsp; That said, I&#039;ll have a look in the current code to see if I can identify what&#039;s gone wrong.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 06 Mar 2012 01:48:31 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=235#p235</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debug watch-variables panel displays structured data types badly]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=233#p233</link>
			<description><![CDATA[<p>I&#039;ve emailed a couple of screenshots.<br />---<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Tue, 06 Mar 2012 01:19:16 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=233#p233</guid>
		</item>
		<item>
			<title><![CDATA[Debug watch-variables panel displays structured data types badly]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=232#p232</link>
			<description><![CDATA[<p>Jeff, </p><p>When I add a structured data type to the watch-variables panel, the watched-variable initially displays neatly but, when I then click on the tiny [+] symbol to expand the full variable structure the display overwrites text on top of text.</p><p>The data structure with which I discovered this is as follows.</p><p>&nbsp; &nbsp; &nbsp; MODULE FILES<br />C&nbsp; &nbsp; &nbsp;------------<br />C&nbsp; &nbsp; &nbsp;jw 22-02-12 draft<br />C&nbsp; &nbsp; &nbsp;jw 03-03-12 last amended<br />C&nbsp; &nbsp; &nbsp;--------------------<br />C&nbsp; &nbsp; &nbsp;FILES<br />C&nbsp; &nbsp; &nbsp;--------------------<br />C&nbsp; &nbsp; &nbsp;Filename<br />C&nbsp; &nbsp; &nbsp;Flags<br />C&nbsp; &nbsp; &nbsp;Fortran unit, file menu ID, Menu-select IDs R, W, Wnew</p><p>&nbsp; &nbsp; &nbsp; TYPE ::&nbsp; FILE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CHARACTER&nbsp; &nbsp;:: NAM*128<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOGICAL&nbsp; &nbsp; &nbsp;:: NAMed, Open<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INTEGER&nbsp; &nbsp; &nbsp;:: LU, <br />&nbsp; &nbsp; &nbsp;+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id, R, W, WN <br />&nbsp; &nbsp; &nbsp; END TYPE<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; TYPE(FILE)&nbsp; &nbsp; &nbsp;:: InF, OuF</p><p>&nbsp; &nbsp; &nbsp; END MODULE Files</p><p>The watch-variable window displays the data structure for the variable, [ InF ], well enough, but it can&#039;t expand to display data contained within that structure without making a mess.</p><p>If I could attach a screenshot file on this forum I would do but, as I can&#039;t, I&#039;ll email it to you.<br />----<br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Tue, 06 Mar 2012 01:00:34 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=232#p232</guid>
		</item>
	</channel>
</rss>
