开发者

Why are my NSLog statements wrapped in Xcode 4?

开发者 https://www.devze.com 2023-02-25 04:56 出处:网络
No matter how wide I make the output window, Xcode 4 seems to always wrap the NSLog output to the default width of the window. Is there an easy way to fix this?

No matter how wide I make the output window, Xcode 4 seems to always wrap the NSLog output to the default width of the window. Is there an easy way to fix this?

2011-04-17 16:31:29.781 MyApp[415:707] rotation : 0.006139
2011-04-17 16:31:29.841 MyApp[415:707] Angle:-0.016967
     rollingX:0.918938

instead of

2011-04-17 16:31:29.781 MyApp[415:707] rotation : 0.006139
2011-04-17 16:31:29.841 MyApp[415:707] Angle:-0.016967   rollingX:0.918938

Here is the code:

float angle;
f开发者_C百科loat rollingX;
...
NSLog(@"Angle:%f\t rollingX:%f",angle,rollingX);


This seems to be a restriction of the console view - there just seem to be no tab positions defined after approx. 60 columns. So the next tab will just go to the next line. If you copy the output and paste it into another editor (i.e. TextWrangler), it will show up just fine, so the text is not hard wrapping.

You might file a bug on Apple's radar for this issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消