XCode中的调试器控制台编码已损坏

编程入门 行业动态 更新时间:2024-10-09 22:20:45
本文介绍了XCode中的调试器控制台编码已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

非拉丁文本输出在XCode调试控制台中非常奇怪的方式。如何正确?

Non-latin text outputs very strange way in XCode debug console. How make it right?

例如: Ä-æ-≤-μ-à-∞-∞-μ-Ω--ç-∫-∞-Ω-∞

(帮助我提高我的问题,因为我的英语不好,让我知道如果很难理解我在这里写的。)

(Help me please improve my question because my english is not good. Let me know If it's hard to understand what I wrote here.)

- (id) initWithDictionary:(NSDictionary*)dictionary { //... self.title = [dictionary objectForKey:@"Заголовок"] ; // dictionary from plist encoded in UTF8 //... return self; } - (void) log { NSString *class = NSStringFromClass([self class]); NSString *sel = NSStringFromSelector(_cmd); NSLog(@"%@:%@:%@", class, title_, sel); }

title _ 是从plist加载的iVar NSString 。它用作uiviewcontroller的标题,在iPhone& iPad。

title_ is iVar NSString loaded from plist. It's used as title of uiviewcontroller and works fine on iPhone & iPad.

推荐答案

由于我将调试器从lldb更改为gdb输出已成功。

Since I changed debugger from lldb to gdb output had become OK. So, something wrong must be with lldb.

在xcode 4:菜单 - >产品 - >管理方案...然后点击编辑按钮 - > Run Your.app左面板) - >调试器 - >将其从LLDB更改为GDB。

In xcode 4: Menu -> Product -> Manage Schemes... Then tap Edit button -> Run Your.app (Left panel) -> Debugger -> change it from LLDB to GDB.

更多推荐

XCode中的调试器控制台编码已损坏

本文发布于:2023-11-23 22:16:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623012.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   调试器   XCode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!