How to Display Specific Map Element in Debugger?

Everything else that doesn't fall into one of the other PB categories.
swhite
Enthusiast
Enthusiast
Posts: 798
Joined: Thu May 21, 2009 6:56 pm

How to Display Specific Map Element in Debugger?

Post by swhite »

Hi

I often use maps with 100-200 elements but in the debugger I cannot find a way to display just a particular map element. I have to display all map elements and then scroll down the list looking for a particular key. Since the elements are not in alphabetical order it is tiresome scrolling though 200 elements. Is there a simple way to find a specific map element in the debugger?

Simon
Simon White
dCipher Computing
User avatar
mk-soft
Always Here
Always Here
Posts: 6248
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: How to Display Specific Map Element in Debugger?

Post by mk-soft »

Open Variable Viewer
- Select Map
- Context -> 'Display Range'
- Dialogbox -> enter map entry name

I also tried it out for the first time. :wink:

Code: Select all


Global NewMap foo()

foo("s1") = 100
foo("s2") = 200
foo("s3") = 300
foo("s4") = 300

ShowVariableViewer()
CallDebugger
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
swhite
Enthusiast
Enthusiast
Posts: 798
Joined: Thu May 21, 2009 6:56 pm

Re: How to Display Specific Map Element in Debugger?

Post by swhite »

Hi

I tried this before and always got a message about garbage at the end of the input because I included the element in the name box. However today when I tried your suggestion everything worked fine. I am sure I tried putting the entry name in the display range box before as well but I obviously was doing some wrong.

Thanks,
Simon
Simon White
dCipher Computing
Post Reply