Skip to content

Commit 180a11f

Browse files
committed
Print strings using their description in the debugger
1 parent 2d61e3d commit 180a11f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/DebuggerSupport.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public enum _DebuggerSupport {
148148
return count == 1 ? "1 element" : "\(count) elements"
149149
case .`struct`?, .`enum`?, nil:
150150
switch value {
151+
case let x as String:
152+
return x.description
151153
case let x as CustomDebugStringConvertible:
152154
return x.debugDescription
153155
case let x as CustomStringConvertible:

0 commit comments

Comments
 (0)