Xcode中的po命令不会生成输出 [英] po command in Xcode does not generate output
问题描述
在我工作期间的某个时候,Xcode的po
和p
命令停止工作.不管我输入什么,它都不会生成输出:
At some point during my work, Xcode's po
and p
commands stopped working. No matter what I enter, it doesn't generate output:
(gdb) po self
(gdb) po [self name]
(gdb) po [UITableView class]
(gdb) po @"Hello"
(gdb) p indexPath.row
(gdb) print indexPath.row
(gdb) po fjkldsjflksdjklwjfkljfkldsjflk
(gdb)
当我输入这些命令中的任何一条时,命令行将转到下一行,在该行中将显示蓝色的(gdb)
,但没有输出.
When I enter any of these commands, the command line just goes to the next line, where it prints the blue (gdb)
, but no output.
我尝试了以下步骤:
- 重新启动Xcode,重新启动我的Macbook
- 在模拟器以及iOS设备上调试时尝试过
- 切换到LLDB并重新启动
- 重新安装Xcode
Xcode中的其他调试工具似乎可以正常工作:断点,分步执行,自动变量检查窗口等.
The other debugging tools in Xcode seem to work okay: Breakpoints, step-by-step execution, the Auto variable examination window etc.
有什么想法吗?
编辑:即使重新安装Xcode也无法正常工作.
Doesn't work even after a re-install of Xcode.
推荐答案
对不起,我在目标输出"窗口中,而不是在调试器输出"窗口中.
Silly me, I was in the 'Target Output' window instead of the 'Debugger Output' window.
我以某种方式认为我在那里检查了其他控制台窗口,但显然没有.
Somehow I thought I checked the other console windows there, but apparently I didn't.
这篇关于Xcode中的po命令不会生成输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!