Inspecting Sets in debugger in Xcode 9.3ß gives erroneous result and freezes Xcode

I run the following in XCode 9.3ß, for OSX App

 

       let s : Set = [0, 1]
       print("test Set", s, "count", s.count)





I get the correct result:

test Set [0, 1] count 2


But when inspecting in debugger (hovering over s, I get the following trace:

[0] Int 8303516142541185

[1] Int 68719476960

[2] Int 4329074328

[3] Int 4326558880

[4] Int 4326558912

[5] Int 24

[6] Int 4329322472

[7] Int 240518168704

[8] Int 0

(null)

[499998] Loading…

(null)

[499999] Loading…

 

Debugger tries to list 500 000 values, giving erroneous values and finally freezing completely XCode.

This works correct in 9.2

 

However, clicking on the information button yelds the correct info

Printing description of s:

▿ 2 elements

  – 0 : 0

  – 1 : 1

 

I didn’t yet check what the memory allocated to s.

Filed a bug report: 36906957

Powered by WPeMatico

About

You may also like...

Comments are closed.