Page 1 of 1

How to Display Specific Map Element in Debugger?

Posted: Mon May 08, 2023 8:03 pm
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

Re: How to Display Specific Map Element in Debugger?

Posted: Mon May 08, 2023 8:52 pm
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

Re: How to Display Specific Map Element in Debugger?

Posted: Tue May 09, 2023 2:03 pm
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