Discussions related to Visual Prolog
Martin Meyer
VIP Member
Posts: 328
Joined: 14 Nov 2002 0:01

Varying presentation in the debugger

Unread post 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"].
Regards Martin
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: Varying presentation in the debugger

Unread post by Thomas Linder Puls »

Can you right click the value and select "Native View"?

If so, what happens?
Regards Thomas Linder Puls
PDC
Martin Meyer
VIP Member
Posts: 328
Joined: 14 Nov 2002 0:01

Re: Varying presentation in the debugger

Unread post 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 8066 times
In tries in which the presentation is not native, the entry is there.
screenshot 2
screenshot 2
screen2.jpg (57.76 KiB) Viewed 8066 times
I see no change though when clicking it on or off. The presentation stays as it is.
Regards Martin
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: Varying presentation in the debugger

Unread post 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.
Regards Thomas Linder Puls
PDC
Martin Meyer
VIP Member
Posts: 328
Joined: 14 Nov 2002 0:01

Re: Varying presentation in the debugger

Unread post 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?
Regards Martin
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: Varying presentation in the debugger

Unread post by Thomas Linder Puls »

Without native view I see:
non-native.png
non-native.png (7.71 KiB) Viewed 8050 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 8050 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.
Regards Thomas Linder Puls
PDC
Martin Meyer
VIP Member
Posts: 328
Joined: 14 Nov 2002 0:01

Re: Varying presentation in the debugger

Unread post by Martin Meyer »

Ah, thank you! I see the extra node.
Regards Martin
Post Reply