Page 1 of 1

Varying presentation in the debugger

Posted: 20 Dec 2017 4:24
by Martin Meyer
Hello Thomas,

I run this code in (build 801) 64 bit mode by Alt+F5. It outputs [1 -> "Hugo"].

Code: Select all

implement main   clauses     run() :-         CollectionM = mapM_redBlack::new(),         CollectionM:set(1, "Hugo"),         stdIO::write(string::present(CollectionM)).   end implement main
But when I then set a break point on line stdIO::write(... and run it with the debugger, the presentation of CollectionM in the 'Variables in the Current Clause' window looks like CollectionM: mapM{integer, string} = <UNKNOWN 043B3F78>.

I continue by switching to 32 bit mode and run it again with the debugger. The presentation in the 'Variables in the Current Clause' window now is [1 -> "Hugo"].

Going on with trying bit mode switching and debug running I randomly get both kinds of presentations in both bit modes in the 'Variables in the Current Clause' window. Whereas the output of the string::present stays always [1 -> "Hugo"].

Re: Varying presentation in the debugger

Posted: 20 Dec 2017 15:54
by Thomas Linder Puls
Can you right click the value and select "Native View"?

If so, what happens?

Re: Varying presentation in the debugger

Posted: 20 Dec 2017 17:03
by Martin Meyer
When the presentation looks like CollectionM: mapM{integer, string} = <UNKNOWN 043B3F78>, the entry "Native View" is not in the menu.
screenshot 1
screenshot 1
screen1.jpg (56.38 KiB) Viewed 8062 times
In tries in which the presentation is not native, the entry is there.
screenshot 2
screenshot 2
screen2.jpg (57.76 KiB) Viewed 8062 times
I see no change though when clicking it on or off. The presentation stays as it is.

Re: Varying presentation in the debugger

Posted: 21 Dec 2017 10:13
by Thomas Linder Puls
OK, so in the first case the debugger is "really" lost. I have reproduced the problem in the official release, but it does not seem to exist in the current internal version, so we will investigate the difference.

In the native view you should see an extra node when you expand the map.

Re: Varying presentation in the debugger

Posted: 21 Dec 2017 14:37
by Martin Meyer
I see no extra node (maybe you say "I should see" in the sense that you already know that I don't have this node).

Presenters are greatly helpful. I have already equipped my own structures with them. Can you release the internal version as an official update?

Re: Varying presentation in the debugger

Posted: 21 Dec 2017 15:05
by Thomas Linder Puls
Without native view I see:
non-native.png
non-native.png (7.71 KiB) Viewed 8046 times
With native view there is an extra node, containing the "real" object that this map is:
native.png
native.png (10.14 KiB) Viewed 8046 times
No we cannot release our internal version of any thing, but we may solve the problem in the external release and release that as an official update.

Re: Varying presentation in the debugger

Posted: 21 Dec 2017 15:22
by Martin Meyer
Ah, thank you! I see the extra node.