开发者

How to see output on console in iPhone

开发者 https://www.devze.com 2023-03-09 17:32 出处:网络
I am running my project on iPhone simulator. 开发者_运维百科I want to see my NSlog(\"\") output on console. I am new with this interface, How will I see output on console when I am running on simulato

I am running my project on iPhone simulator. 开发者_运维百科I want to see my NSlog("") output on console. I am new with this interface, How will I see output on console when I am running on simulator.


Go to the menu bar , select run option, it leads to a drop menu, there you have to select console.

Run---> Console


The console output is visible in Xcode. Output is logged while running the app on the Simulator from Xcode.


You have already given answer to your question, Use NSLog() to print on console


Follow this steps in XCode

Go to Menu Run -> Console, you will see the console output


Hit Cmd+Shift+R in Xcode <= 3.x


In XCode 4, it's showed as in the screenshot:

How to see output on console in iPhone

It's the black bold text, showing an error log. Using NSLog displays the text you described in the code.


If you are using XCode4 then press "command + shift + y" to see your NSLog(@"") on consol and XCode is not XCode4 then press "command + control + r" to see your NSLog(@"") on consol.

0

精彩评论

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