Coder Social home page Coder Social logo

dxxcodeconsoleunicodeplugin's Introduction

DXXcodeConsoleUnicodePlugin

可以使用 https://github.com/dhcdht/XcodeHelper 管理和自动升级插件

转换 Xcode 控制台中一些不可阅读的字符。

比如:

Error Domain=kCFErrorDomainCFNetwork Code=310 "\u4e0e\u5b89\u5168 web \u4ee3\u7406\u670d\u52a1\u5668 (HTTPS) \u901a\u4fe1\u65f6\u51fa\u73b0\u95ee\u9898\u3002" UserInfo=0x155e20e0 {_kCFStreamErrorCodeKey=-2096, NSErrorFailingURLStringKey=https://api.leancloud.cn/1.1/batch/save, NSErrorFailingURLKey=https://api.leancloud.cn/1.1/batch/save, NSLocalizedDescription=\u4e0e\u5b89\u5168 web \u4ee3\u7406\u670d\u52a1\u5668 (HTTPS) \u901a\u4fe1\u65f6\u51fa\u73b0\u95ee\u9898\u3002, _kCFStreamErrorDomainKey=4, NSLocalizedRecoverySuggestion=\u8bf7\u68c0\u67e5\u60a8\u7684\u4ee3\u7406\u8bbe\u7f6e\u3002\u6709\u5173\u6b64\u95ee\u9898\u7684\u5e2e\u52a9\uff0c\u8bf7\u8054\u7cfb\u60a8\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u3002}

转换到:

Error Domain=kCFErrorDomainCFNetwork Code=310 "与安全 web 代理服务器 (HTTPS) 通信时出现问题。" UserInfo=0x155e20e0 {_kCFStreamErrorCodeKey=-2096, NSErrorFailingURLStringKey=https://api.leancloud.cn/1.1/batch/save, NSErrorFailingURLKey=https://api.leancloud.cn/1.1/batch/save, NSLocalizedDescription=与安全 web 代理服务器 (HTTPS) 通信时出现问题。, _kCFStreamErrorDomainKey=4, NSLocalizedRecoverySuggestion=请检查您的代理设置。有关此问题的帮助,请联系您的系统管理员。}

使用方法:

两种:

1.快捷键 option+c 会转换当前 剪贴板 中的内容并用一个对话框把转换后的内容显示出来。

2.在 Xcode 的 Edit 菜单中勾选 ConvertUnicodeInConsole,然后 console 中再出现 \u4e0e 时,就会自动转换成 显示。

dxxcodeconsoleunicodeplugin's People

Contributors

bryant1410 avatar dhcdht avatar nekrich avatar zhugongpu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dxxcodeconsoleunicodeplugin's Issues

新版问题

1.option + c,转译的时候,不能转译,还是unicode,原因在于:
if ([str length]) {//此处应该改为if ([str length] == 0)
str = originString;
}

2.有一些unicode没有被转化为中文,原因在于:

  • (id)initWithAdaptorType:(id)arg1 content:(id)arg2 kind:(int)arg3
    {
    id item = IMP_IDEConsoleItem_initWithAdaptorType(self, _cmd, arg1, arg2, arg3);

    if (sIsConvertInConsoleEnabled) {
    NSString *logText = [item valueForKey:@"content"];
    NSString *resultText = [DXXcodeConsoleUnicodePlugin convertUnicode:logText];
    [item setValue:resultText forKey:@"content"];
    }

    return item;
    }
    在这里,如果需要转译的字符串过长时,会被截断,分多次发送

安装问题

下载工程 运行了 没有效果啊? 适配Xcode8吗?

转化过长字条串时,弹出的窗体太长

非常感谢,这个插件太有用了!但在使用过程中,碰到了一个问题:
转化过长字条串时,弹出的窗体太长,超出了屏幕的范围,最好能适应当前屏幕大小,文字在内部滚动!
(ps,文字太长,同一段文字,有时会提示太长有时直接弹出窗体,这应该也是一个BUG了)

xcode 6.1.1 好像没效果

log:

2015-01-08 13:12:09.763 GD189[4579:190436] {
    cost = 0;
    date = "2014-12-30";
    duration = "00:03:11";
    id = 177;
    isDial = "\U4e3b\U53eb";
    locale = "\U676d\U5dde";
    "target_phone" = 10000;
    time = "20:02:36";
    type = "\U6f2b\U6e38";
}

xcode6.4

xcode6.4不可以,我试了在alcatraz上安装不成功

输入 AppleID 的时候导致 Xcode 崩溃

很奇怪的问题,在 Xcode 的 Preference -> Account -> Add Apple ID,当输入密码的时候(激活密码输入框),百分百崩溃。

删除该插件就正常了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.