Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Apportable查看NSLog或任何普通输出?我使用和gdbprintf运行我的程序,但没有输出。apportable debugrun
NSLog
printf
apportable debug
run
NSLog 和 printf 通过管道传送到 android 日志系统。所以为了看到你的消息;调用 adb logcat。这将允许您查看日志记录。
我正在使用apportable log | grep NSLog,它只显示 NSLog。
apportable log | grep NSLog
打开两个终端窗口。类型合适的日志 | grep AppName 在其中之一上。然后对另一个进行适当的调试。