我无法调试Swift Strings
原文链接:https://www.f2er.com/swift/320456.htmlfunc stringTest() { let test1:String = "test1"; let test2:NSString = "test2"; // <-- Breakpoint here println(test1); println(test2); }
如果我在这些行之后设置了断点,并尝试打印test1,我会收到以下错误:
po test1 error: <REPL>:1:1: error: use of unresolved identifier 'test1' test1 ^
但是我能够成功打印test2:
po test2 test2